updated examples for new NEW api

This commit is contained in:
alisdair sullivan 2010-06-01 19:42:57 -07:00
parent ce503823c8
commit 012317e0c5
4 changed files with 56 additions and 4 deletions

View file

@ -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}