3 ms·
There are multiple standards. https://www.ecma-international.org/publications/standards/Ecma-404.htm https://www.ecma-international.org/publications/standards/
by patrickthebold 7y ago
There are multiple standards.
https://www.ecma-international.org/publications/standards/Ecma-404.htm https://www.ecma-international.org/publications/standards/Ec...
Is more relaxed.
>The JSON syntax does not impose any restrictions on
the strings used as names, does not require that name strings be unique, and does not assign any
significance to the ordering of name/value pairs. These are all semantic considerations that may be defined by
JSON processors or in specifications defining specific uses of JSON for data interchange.
Also it's pretty clear that the keys must have an order going over the wire. And JavaScript objects (which aren't unrelated to JSON have an order now) https://www.stefanjudis.com/today-i-learned/property-order-is-predictable-in-javascript-objects-since-es2015/ https://www.stefanjudis.com/today-i-learned/property-order-i...