updated modules to use the new eep0018() type

This commit is contained in:
alisdair sullivan 2010-08-11 22:33:50 -07:00
parent f02724602c
commit 6120455a22
2 changed files with 4 additions and 4 deletions

View file

@ -67,8 +67,8 @@ parser(OptsList) ->
end. end.
-spec term_to_json(JSON::json()) -> binary(). -spec term_to_json(JSON::eep0018()) -> binary().
-spec term_to_json(JSON::json(), Opts::encoder_opts()) -> binary(). -spec term_to_json(JSON::eep0018(), Opts::encoder_opts()) -> binary().
term_to_json(JSON) -> term_to_json(JSON) ->
term_to_json(JSON, []). term_to_json(JSON, []).

View file

@ -34,7 +34,7 @@
-spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> json(). -spec json_to_term(JSON::binary(), Opts::decoder_opts()) -> eep0018().
json_to_term(JSON, Opts) -> json_to_term(JSON, Opts) ->
P = jsx:parser(opts_to_jsx_opts(Opts)), P = jsx:parser(opts_to_jsx_opts(Opts)),
@ -49,7 +49,7 @@ json_to_term(JSON, Opts) ->
%% erlang terms to jsx events is straightforward and the iterator can be faked with an %% erlang terms to jsx events is straightforward and the iterator can be faked with an
%% anonymous function %% anonymous function
-spec term_to_json(JSON::json(), Opts::encoder_opts()) -> binary(). -spec term_to_json(JSON::eep0018(), Opts::encoder_opts()) -> binary().
term_to_json(List, Opts) -> term_to_json(List, Opts) ->
case proplists:get_value(strict, Opts, true) of case proplists:get_value(strict, Opts, true) of