[erlang-questions] jiffy encoding

Andrew Ledvina wvvwwvw@REDACTED
Sat Jul 13 18:07:41 CEST 2013


>
> The reason for the extra tuple list is to distinguish ambiguous cases
> involving empty lists and empty objects. Mochijson takes a different
> approach but something must be done to deal with the Erlang types available.
>
> ------------------------------
>
> Message: 9
> Date: Sat, 13 Jul 2013 10:05:00 +0300
> From: Aggelos Giantsios <aggelgian@REDACTED <javascript:;>>
> To: Mike Oxford <moxford@REDACTED <javascript:;>>
> Cc: Erlang Questions <erlang-questions@REDACTED <javascript:;>>
> Subject: Re: [erlang-questions] jiffy encoding
> Message-ID:
>         <
> CAAyN70R1LjoHcjWbb8WPnCZKS5ez12Y_AaW0HKJYU+o3hzG_KQ@REDACTED<javascript:;>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Sat, Jul 13, 2013 at 3:58 AM, Mike Oxford <moxford@REDACTED<javascript:;>>
> wrote:
>
> > From the docs...
> > {[{foo, bar}]}             -> {"foo": "bar"} -> {[{<<"foo">>,
> <<"bar">>}]}
> >
> > Why does jiffy need the extra "tuple list" syntax?
> > Anyone happen to know?
> >
>
> Hello!
>
> I believe the notion is that an orddict is converted to a JSON dictionary.
> I guess in order to distinguish an orddict from a regular list, they wrap
> the orddict in a tuple.
>
> Aggelos
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://erlang.org/pipermail/erlang-questions/attachments/20130713/a890fa51/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED <javascript:;>
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
> End of erlang-questions Digest, Vol 121, Issue 7
> ************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130713/2d9b9103/attachment.htm>


More information about the erlang-questions mailing list