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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -