updated examples for new NEW api
This commit is contained in:
parent
ce503823c8
commit
012317e0c5
4 changed files with 56 additions and 4 deletions
|
@ -32,7 +32,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:decoder({jsx_parser, event, []}, []),
|
||||
case P(JSON) of
|
||||
{incomplete, _} ->
|
||||
{error, badjson}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue