add encoder and decoder functions to api
This commit is contained in:
parent
3cbabec80e
commit
ed33626ed5
5 changed files with 17 additions and 6 deletions
|
@ -37,7 +37,7 @@
|
|||
-spec to_term(Source::(binary() | list()), Opts::opts()) -> binary().
|
||||
|
||||
to_term(Source, Opts) when is_list(Opts) ->
|
||||
(jsx_decoder:decoder(?MODULE, init(Opts), Opts))(Source).
|
||||
(jsx:decoder(?MODULE, init(Opts), Opts))(Source).
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue