saapby / json-simple

Automatically exported from code.google.com/p/json-simple
0 stars 0 forks source link

Add support for keeping the field order #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please add support for keeping the field order in the generated String output.

Original issue reported on code.google.com by a.adrian...@googlemail.com on 10 Nov 2011 at 11:51

GoogleCodeExporter commented 8 years ago
Please use a java.util.Map which supports ordered fields (such as 
LinkedHashMap). Here's an example:
http://code.google.com/p/json-simple/wiki/EncodingExamples#Example_1-3_-_Encode_
a_JSON_object_-_Using_Map

Original comment by fangyid...@gmail.com on 29 Nov 2011 at 2:43