backed out ill conceived change to options

This commit is contained in:
alisdair sullivan 2010-09-27 14:51:33 -07:00
parent 5bcdca948a
commit a4d48fd8d9

View file

@ -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.