MySQL Forums
Forum List  »  Newbie

Re: MYSQL TABLE TO JSON OUTPUT... BUT COLUMN ORDER IS NOT COMING PROPERLY
Posted by: Phillip Ward
Date: September 28, 2020 07:31AM

Short Answer: This is not a problem.

The order of entries in JSON does not matter.

Anything that parses the JSON data as JSON data will not care one jot about the order of the elements within it.

Anything that mistakenly tries to read the JSON Data as a String that just happens to look like JSON, might well get upset ... but you shouldn't be writing code that does so in the first place!

Regards, Phill W.

Options: ReplyQuote




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.