backed out ill conceived change to options
This commit is contained in:
parent
5bcdca948a
commit
a4d48fd8d9
1 changed files with 5 additions and 4 deletions
|
@ -72,6 +72,7 @@
|
||||||
%% @type jsx_opt() = {comments, true | false}
|
%% @type jsx_opt() = {comments, true | false}
|
||||||
%% | {escaped_unicode, ascii | codepoint | none}
|
%% | {escaped_unicode, ascii | codepoint | none}
|
||||||
%% | {multi_term, true | false}
|
%% | {multi_term, true | false}
|
||||||
|
%% | {unquoted_keys, true | false}
|
||||||
%% | {encoding, auto | supported_utf()}.
|
%% | {encoding, auto | supported_utf()}.
|
||||||
|
|
||||||
%% @type supported_utf() = utf8
|
%% @type supported_utf() = utf8
|
||||||
|
@ -257,7 +258,7 @@ json_to_term(JSON) ->
|
||||||
-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> eep0018().
|
-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> eep0018().
|
||||||
|
|
||||||
json_to_term(JSON, Opts) ->
|
json_to_term(JSON, Opts) ->
|
||||||
try jsx_eep0018:json_to_term(JSON, [])
|
try jsx_eep0018:json_to_term(JSON, Opts)
|
||||||
catch error:badarg -> erlang:error(badarg)
|
catch error:badarg -> erlang:error(badarg)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue