Re: JSON in OTP

Max Lapshin <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAMxVRxA+yO4NdsyaKsw3AfxUFc7hS5Y9OPaYv+gjftNiczJDoQ@mail.gmail.com>
Yes, I was not correct about order.

Better say: there are popular implementations that assume some hidden
key order in parsed objects.

On Wed, Nov 4, 2020 at 2:07 PM Michał Muskała <[email protected]> wrote:
>
> śr., 4 lis 2020 o 11:01 Max Lapshin <[email protected]> napisał(a):
> >
> > First simple question:  how to decode json objects into maps if json
> > declares order and erlang maps are unordered?
>
> This is not accurate. Both JSON specifications (RFC 8259 [1] and ECMA
> 404 [2]) define fields as unordered and leave conflicts as
> implementation detail.
>
> [1]: https://tools.ietf.org/html/rfc8259
> [2]: http://www.ecma-international.org/publications/standards/Ecma-404.htm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.