forked from stleary/JSON-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Sean Leary edited this page May 14, 2016
·
16 revisions
Why isn't ordering allowed in JSONObjects?
Support for ordering is one of the most popular requests, along with adding some type of build support. However, from the JSON spec RFC 7159: "An object is an unordered collection of zero or more name/value pairs". As a reference app, the design is required to stay as close to the spec as possible, so ordering in JSONObjects is not supported.
Will ordering ever be allowed in JSONObjects?
There are not plans currently to support ordering. It is not expected that this will ever change.