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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -