json in sql server 2019 code example Example: json in sql server SELECT name, surname FROM emp FOR JSON AUTO;