[erlang-questions] json_to_term EEP

Anthony Shipman als@REDACTED
Wed Jul 30 11:05:11 CEST 2008


On Wed, 30 Jul 2008 12:55:27 am Hynek Vychodil wrote:
> JSON: {"key":"value", "key2":{}, "key3":[{}, 3.14 , "val", true], "key4":
> {"a":false, "b":2} }
>
> (B): {[
>       {<<"key">>, <<"value">>},
>       {<<"key2">>, {[]}},
>       {<<"key3", [{[]}, 3.14, <<"val">>, true]},
>       {<<"key4">>, {[{<<"a">>, false},{<<"b">>, 2}]}}
>    ]}

How about 

     {json, [ {...} ] }

so that we know what we are looking at and can check it in function argument 
patterns etc.

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.



More information about the erlang-questions mailing list