<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<span></span><br>

<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Sat, 13 Jul 2013 10:05:00 +0300<br>
From: Aggelos Giantsios <<a href="javascript:;" onclick="_e(event, 'cvml', 'aggelgian@gmail.com')">aggelgian@gmail.com</a>><br>
To: Mike Oxford <<a href="javascript:;" onclick="_e(event, 'cvml', 'moxford@gmail.com')">moxford@gmail.com</a>><br>
Cc: Erlang Questions <<a href="javascript:;" onclick="_e(event, 'cvml', 'erlang-questions@erlang.org')">erlang-questions@erlang.org</a>><br>
Subject: Re: [erlang-questions] jiffy encoding<br>
Message-ID:<br>
        <<a href="javascript:;" onclick="_e(event, 'cvml', 'CAAyN70R1LjoHcjWbb8WPnCZKS5ez12Y_AaW0HKJYU+o3hzG_KQ@mail.gmail.com')">CAAyN70R1LjoHcjWbb8WPnCZKS5ez12Y_AaW0HKJYU+o3hzG_KQ@mail.gmail.com</a>><br>

Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
On Sat, Jul 13, 2013 at 3:58 AM, Mike Oxford <<a href="javascript:;" onclick="_e(event, 'cvml', 'moxford@gmail.com')">moxford@gmail.com</a>> wrote:<br>
<br>
> From the docs...<br>
> {[{foo, bar}]}             -> {"foo": "bar"} -> {[{<<"foo">>, <<"bar">>}]}<br>
><br>
> Why does jiffy need the extra "tuple list" syntax?<br>
> Anyone happen to know?<br>
><br>
<br>
Hello!<br>
<br>
I believe the notion is that an orddict is converted to a JSON dictionary.<br>
I guess in order to distinguish an orddict from a regular list, they wrap<br>
the orddict in a tuple.<br>
<br>
Aggelos<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://erlang.org/pipermail/erlang-questions/attachments/20130713/a890fa51/attachment-0001.html" target="_blank">http://erlang.org/pipermail/erlang-questions/attachments/20130713/a890fa51/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'erlang-questions@erlang.org')">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
End of erlang-questions Digest, Vol 121, Issue 7<br>
************************************************<br>
</blockquote>