Timeline for Sorting a JSON Object/String on basis of keys
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 6, 2014 at 10:31 | vote | accept | Sambhav Sharma | ||
| Jun 5, 2014 at 15:45 | answer | added | Sam Berry | timeline score: 2 | |
| Jun 5, 2014 at 15:37 | answer | added | Willem Mulder | timeline score: 3 | |
| Jun 5, 2014 at 15:33 | comment | added | Sambhav Sharma | Yeah so I can convert it to a Map and then sort the Map? Is that what you're suggesting? | |
| Jun 5, 2014 at 15:31 | comment | added | Sotirios Delimanolis | Json doesn't have an order. Parse the JSON, generate your application model objects, and sort those. Also, that is a JSON object, not an array. | |
| Jun 5, 2014 at 15:31 | comment | added | Denys Séguret | What do you mean ? You want to have a JSON string with the lines written in the alpha order of the keys ? | |
| Jun 5, 2014 at 15:30 | history | asked | Sambhav Sharma | CC BY-SA 3.0 |