erlang - jsx:decode json into string value instead of binary -


i read doc of jsx removed post_decode option because prevented evolution of jsx.

so what's option if want post_decode can do. example, can have function convert binary value string value option.

f = fun(e) when is_binary(e) -> binary_to_list(e) end, jsx:decode(binaryjsonstring, [{post_decode,f}]). 

how do now?


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -