Erlang converting proplist to dict
I'm new to Erlang and am trying to convert something like the following to
a dict:
{struct,[{<<"1">>,<<"2,3,4">>},{<<"2">>,<<"2,3,4">>}]}
I'm getting this after decoding the following json using mochijson2:
<<"{"1":"2,3,4","2":"2,3,4"}">>
The final result I'm looking for would be something like:
1 -> [2,3,4]
2 -> [2,3,4]
I think it's a proplist but not sure how to proceed with the conversion.
Thanks
No comments:
Post a Comment