couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: Duplicate fields in documents
Date Thu, 20 Feb 2014 07:03:50 GMT
> 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 <jens@couchbase.com> wrote:

>
> On Feb 19, 2014, at 8:45 PM, Mark Hahn <mark@hahnca.com> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message