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 @@
pretty(JSON, Opts) ->
Init = init(parse_opts(Opts, #opts{})),
P = jsx:decoder({jsx_prettify, prettify, Init}, []),
P = jsx:parser({jsx_prettify, prettify, Init}, []),
case P(JSON) of
{incomplete, _} -> {error, badjson}
; {error, badjson} -> {error, badjson}