add encoder/0 to jsx.erl
This commit is contained in:
parent
0de13a2685
commit
9cee07212f
1 changed files with 6 additions and 0 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue