But Doug, just to clarify:  You mean that the parsed objects create no
predictable insertion order right?  It is actually possible to use replacer
to serialize keys in a particular order, and that might be enough for what
he is looking for (if two objects serialized as the same string they would
be equal).

Perhaps I am over simplifying his question or I misunderstand your response.
On Sep 11, 2011 3:05 PM, "Douglas Crockford" <[email protected]> wrote:
> On 11:59 AM, Felipe Gasper wrote:
>> Is it possible to get sorted keys:
>>
>> {a:1,c:3}
>>
>> …from running JSON.stringify when declaring an object thus:
>>
>> {c:3,a:1}
> JSON objects are unordered. If order is important, then use an array.
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to