add encoder/0 to jsx.erl

This commit is contained in:
alisdair sullivan 2011-07-17 01:25:22 -07:00
parent 0de13a2685
commit 9cee07212f

View file

@ -27,6 +27,7 @@
%% the core parser api
-export([parser/0, parser/1]).
-export([decoder/0, decoder/1]).
-export([encoder/0]).
-export([term_to_json/1, term_to_json/2]).
-export([json_to_term/1, json_to_term/2]).
-export([is_json/1, is_json/2]).
@ -71,6 +72,11 @@ decoder(OptsList) ->
end.
-spec encoder() -> jsx_encoder().
encoder() -> jsx_encoder:encoder().
-spec json_to_term(JSON::binary()) -> eep0018().
json_to_term(JSON) ->