order JSON object entries
Brought to you by:
efficacy
I know JSON defines object as "An object is an unordered set of name/value pairs" but sometimes an object in json format or the elements it represents must be displayed for an user to read or edit them. It is disturbing that the element order is changing with no obvious reason. This can be solved by using LinkedHashMap instead of HashMap in the reading of the object.