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?
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?
Browser other questions tagged android json
You are not signed in. Login or sign up in order to post.
You are using
JSONArray.write
?– Guilherme Nascimento
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.
– mgibsonbr
daniel12345smith, you have permission to change structure of this JSON? If you have, I can help.
– Felipe Douradinho
I have permission yes.
– daniel12345smith