https://bugzilla.wikimedia.org/show_bug.cgi?id=45303

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from [email protected] ---
I said in that discussion that Javascript object preserve its ordering, but it
must have been old information as the current doc for ECMAscript states that it
does not preserve ordering. In our API we use key-value pairs as in the object
notation ({}), where the value might be arrays ([]) and in some cases arrays of
objects. Arrays are used if we must preserve order, and we make no assumption
about order in objects other than what we might deduce from sorting the keys.

That said I think some browsers still preserve order in objects, but as long as
it isn't consistent and according to the JSON-spec we can't use it.

See for example the answer about V8 in
http://stackoverflow.com/questions/7214293/is-the-order-of-elements-in-a-json-list-maintained

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to