updated examples for new api
This commit is contained in:
parent
f042908c30
commit
38aef5f383
4 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@
|
|||
%% also is not streaming, though it could be modified to parse partial objects/lists.
|
||||
|
||||
decode(JSON) ->
|
||||
P = jsx:decoder({jsx_parser, event, []}, []),
|
||||
P = jsx:parser({jsx_parser, event, []}, []),
|
||||
case P(JSON) of
|
||||
{incomplete, _} ->
|
||||
{error, badjson}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue