Closed GoogleCodeExporter closed 8 years ago
It's addressed in the wiki:
http://code.google.com/p/json-simple/wiki/EncodingExamples#Example_1-1_-_Encode_
a_JSON_object
Is it misleading?
Original comment by fangyid...@gmail.com
on 18 Dec 2012 at 7:53
Yeah.. It is misleading..
I read that paragraph before opening this issue and what I understood from it
was this:
"Ordering of JSONObject elements is determined by provided map implementation.
java.util.HashMap is default, but you can chose/pass any other map."
What was actually stated there is this:
JSONObject is subclass of java.util.HashMap. No ordering is provided. If you
need strict ordering of elements use JSONValue.toJSONString( map ) method.
Original comment by marko.ta...@gmail.com
on 18 Dec 2012 at 8:33
Thank you for your suggestion! I've modified the wiki page.
Original comment by fangyid...@gmail.com
on 20 Dec 2012 at 2:13
Cool! Glad to help..
Thank you on your work.
Original comment by marko.ta...@gmail.com
on 20 Dec 2012 at 1:58
Original issue reported on code.google.com by
marko.ta...@gmail.com
on 16 Dec 2012 at 9:11Attachments: