[erlang-questions] jiffy encoding
Aggelos Giantsios
aggelgian@REDACTED
Sat Jul 13 09:05:00 CEST 2013
On Sat, Jul 13, 2013 at 3:58 AM, Mike Oxford <moxford@REDACTED> 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.htm>
More information about the erlang-questions
mailing list