how to get json data frm sql server code example Example: json in sql server SELECT name, surname FROM emp FOR JSON AUTO;