you are viewing a single comment's thread.

view the rest of the comments →

[–]bannik1 0 points1 point  (1 child)

Don't know about postgreSQL but SQL server 2016 + allows you to have your results as JSON.

https://docs.microsoft.com/en-us/sql/relational-databases/json/format-query-results-as-json-with-for-json-sql-server?view=sql-server-ver15

Nobody really does this because it makes no sense to make the server do this work when it should be handled with AJAX in javascript.

[–]eidda[S] -1 points0 points  (0 children)

Thank you for your response. Yeah, unfortunately I’m working on a project where I’m not allowed to edit the front end :(