How to prevent Jsonarray from organizing alphabetically?

Asked

Viewed 67 times

0

I am taking the data of a Jsonarray and passing to another String, however in this process my data are getting in alphabetical order, and I would like it to be in the order of reading the Json file. That’s possible?

  • You are using JSONArray.write?

  • Are the array elements changing order (unlikely) or the properties of the objects contained in the array? If it is the second case, it is normal, since JSON objects do not impose an order on their fields. If you can get around this, I can’t tell you.

  • daniel12345smith, you have permission to change structure of this JSON? If you have, I can help.

  • I have permission yes.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.