api change, parser/0,1 deprecated, replaced with decoder/0,1

This commit is contained in:
alisdair sullivan 2011-04-26 23:40:12 -07:00
parent 6cc28573b6
commit b2d923cbcb
8 changed files with 38 additions and 26 deletions

View file

@ -64,11 +64,11 @@
%% this probably doesn't work properly
-type jsx_parser() :: fun((binary()) -> jsx_parser_result()).
-type jsx_decoder() :: fun((binary()) -> jsx_decoder_result()).
-type jsx_parser_result() ::
{event, jsx_event(), fun(() -> jsx_parser_result())}
| {incomplete, jsx_parser()}
-type jsx_decoder_result() ::
{event, jsx_event(), fun(() -> jsx_decoder_result())}
| {incomplete, jsx_decoder()}
| {error, {badjson, binary()}}.