On rebar.config
, add
{deps, [
{rjs, {git, "https://github.com/yjh0502/rjs", {branch, "master"}}}
]}.
decode(JSON) -> Result
decode(JSON, Opts) -> Result
JSON = binary() | iolist()
Result = {ok, term()}
Opts = [binary | atom | existing_atom | attempt_atom]
See jsx:decode/1,2
encode(Term) -> Result
Term = term()
Result = {ok, binary()}