updated examples for new api

This commit is contained in:
alisdair sullivan 2010-06-09 00:58:23 -07:00
parent f042908c30
commit 38aef5f383
4 changed files with 4 additions and 4 deletions

View file

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