Closed GoogleCodeExporter closed 9 years ago
JSON object is NOT guaranteed to be ordered according to the spec, but you can
use java.util.LinkedHashMap if you want to preserve the order on output. See
http://code.google.com/p/json-simple/wiki/EncodingExamples#Example_1-1_-_Encode_
a_JSON_object
Original comment by fangyid...@gmail.com
on 21 May 2012 at 9:07
Thanks.
I also found quite an interesting workaround in StackWorkflow:
http://stackoverflow.com/a/7981662
:-)
Original comment by waltert...@gmail.com
on 21 May 2012 at 3:17
Original issue reported on code.google.com by
waltert...@gmail.com
on 19 May 2012 at 11:24