api change, parser/0,1 deprecated, replaced with decoder/0,1
This commit is contained in:
parent
6cc28573b6
commit
b2d923cbcb
8 changed files with 38 additions and 26 deletions
|
@ -41,7 +41,7 @@
|
|||
-spec format(JSON::binary(), Opts::format_opts()) -> binary() | iolist().
|
||||
|
||||
format(JSON, Opts) when is_binary(JSON) ->
|
||||
P = jsx:parser(extract_parser_opts(Opts)),
|
||||
P = jsx:decoder(extract_parser_opts(Opts)),
|
||||
format(fun() -> P(JSON) end, Opts);
|
||||
format(F, OptsList) when is_function(F) ->
|
||||
Opts = parse_opts(OptsList, #format_opts{}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue