You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently final object (JSONObject.toString()) is not sorted in order in which it was constructed. It would be nice to have ability to store elements in order. I mean if I put first element "element2" and second "element1" I would like to see them in this order. For this it could be simple solution to change HashMap to LinkedHashMap, but I don't know if this is the right decision or if there should be one more constructor which will accept the map implementation (or some other parameters which will tell that we want to have final json in order as it was constructed). If you want I can submit PR with change from HashMap to LinkedHashMap.
The text was updated successfully, but these errors were encountered:
Currently final object (JSONObject.toString()) is not sorted in order in which it was constructed. It would be nice to have ability to store elements in order. I mean if I put first element "element2" and second "element1" I would like to see them in this order. For this it could be simple solution to change HashMap to LinkedHashMap, but I don't know if this is the right decision or if there should be one more constructor which will accept the map implementation (or some other parameters which will tell that we want to have final json in order as it was constructed). If you want I can submit PR with change from HashMap to LinkedHashMap.
The text was updated successfully, but these errors were encountered: