Для JSON PATH SQL Server
SELECT BusinessEntityID As Id,
FirstName, LastName,
Title As 'Info.Title',
MiddleName As 'Info.MiddleName'
FROM Person
FOR JSON PATH, ROOT('info'),INCLUDE_NULL_VALUES
Tiny Coders