Hi,

Edelson, Justin schrieb:
> ... If a JSON implementation implements objects in a
> non-orderable way (which is permitted under the spec and
> done in the json.org Java implementation), you can never
> recover the original order of child nodes.

The spec is actually very clear: The order amongst properties in objects
is explicitly undefined. That is, code must never expect properties to
have a specific order.

The problem is that browser JavaScript interpreters are implemented
providing a property order, namely the order of property definition
(similar to the ordering of the LinkedHashMap in Java) and client-side
java scripters unfortunately tend to depend on this "feature".

Regards
Felix

Reply via email to