> No; nothing I know of but Erlang preserves key order.

Try it, you'll be surprised.  I know it's not in any spec but that's the
way browsers behave, with the one exception I mentioned above.


On Wed, Feb 19, 2014 at 10:52 PM, Jens Alfke <[email protected]> wrote:

>
> On Feb 19, 2014, at 8:45 PM, Mark Hahn <[email protected]> wrote:
>
> >> The Erlang JSON parser is already being weird and nonstandard in
> >> preserving the order of keys
> >
> > Don't all javascript engines do the same?  The one exception I can think
> of
> > is in chrome when you spell out a number, i.e. "one".
>
> No; nothing I know of but Erlang preserves key order. (I think it's
> because Erlang parses JSON to a linked list of key-value pairs, while
> everyone else uses a hash-table.)
>
> --Jens

Reply via email to