I want to convert a result from a select
into JSON
format, to do this I found the following script
select rankName as name
from tbUserHasRank
where userTag = 'test'
for json auto
however I receive the error
Incorrect syntax near 'json'.
so... what's incorrect with my syntax I wonder?