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