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
Post a Comment