api change, parser/0,1 deprecated, replaced with decoder/0,1

This commit is contained in:
alisdair sullivan 2011-04-26 23:40:12 -07:00
parent 6cc28573b6
commit b2d923cbcb
8 changed files with 38 additions and 26 deletions

View file

@ -40,7 +40,7 @@
-spec is_json(JSON::binary(), Opts::verify_opts()) -> true | false.
is_json(JSON, Opts) ->
P = jsx:parser(extract_parser_opts(Opts)),
P = jsx:decoder(extract_parser_opts(Opts)),
case proplists:get_value(strict, Opts, false) of
true -> collect_strict(P(JSON), [[]])
; false -> collect(P(JSON), [[]])