3 ms·
jsx (the pure Erlang JSON library) behaves the same way. In jsx at least, passing the return_maps option will return > jsx:decode(<<"{\"foo\":\"bar\", \"fo
by filmor 9y ago
jsx (the pure Erlang JSON library) behaves the same way. In jsx at least, passing the return_maps option will return
> jsx:decode(<<"{\"foo\":\"bar\", \"foo\":\"baz\"}">>, [return_maps]).
#{<<"foo">> => <<"baz">>}
The actual problem seems to me the difference in the model (list of items, which "works" for duplicate keys, vs. maps).