for json path, for json auto
Posted by: Travis Loyd
Date: October 13, 2021 09:19AM

I'm switching a project over from mssql to mysql. In many places there are SELECT statements with 'FOR JSON PATH' appended to the end which with mssql returns formatted JSON, which is then sent to the user via a webapi.

I can see that I can create objects in my C# code, load them up with data, and return the objects which will be converted into JSON.

Does MySQL have something similar or equivalent to 'FOR JSON PATH', in order to avoid having to create the classes for the json conversion process?

Options: ReplyQuote


Subject
Views
Written By
Posted
for json path, for json auto
1052
October 13, 2021 09:19AM
391
October 13, 2021 10:12AM
272
October 14, 2021 06:09PM
230
October 14, 2021 06:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.