I have a piece of JSON string, which I want to parse in Erlang. It looks like:
({ id1 : ["str1", "str2", "str3"], id2 : ["str4", "str5"]})
I looked at mochijson2, and a couple of other JSON parsers, but I really could not figure out how to do it. Any help greatly appreciated!
I once used the erlang-json-eep-parser, and tried it on your data.
Right, it doesn’t like the parentheses.
And it doesn’t like the unquoted keys:
That looks better.
So it seems that your data is almost JSON, at least as far as this parser is concerned.