B4J Question Why are the generated JSON sorted with Json librarys

Xiaofy

New Member
I try to parse this XML file and generate JSON. Why is the data order of the generated JSON file different from that of the original XML? Instead, it is sorted the same. Why can't we generate JSON files in the same order as the original data.
I am not good at communicating with others in English.

Original XML file:






Why shouldn't it be generated

{

"NOTE": "This XML file should only be used for documentation purposes.",
"doclet-version-NOT-library-version": "0",
"class": {....}
}
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…