I'm using npm mssql lib with NodeJS to execute a query from SQL Server with the following query
select name, surname, id from clients
the query result is correct, (in SQL Server management studio), but the structure of the JSON object returned to the server is mixed like so:
{
surname :"foo",
id:"bar",
name:"foo bar"
}
How can I tell the SQL Server or the mssql to keep the order of the returned JSON identical to the select clause in the query?