ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/XS.pm
(Generate patch)

Comparing JSON-XS/XS.pm (file contents):
Revision 1.113 by root, Thu Nov 20 03:59:53 2008 UTC vs.
Revision 1.114 by root, Wed Jan 21 05:34:08 2009 UTC

766JSON object or b) parsing multiple JSON objects separated by non-JSON text 766JSON object or b) parsing multiple JSON objects separated by non-JSON text
767(such as commas). 767(such as commas).
768 768
769=item $json->incr_skip 769=item $json->incr_skip
770 770
771This will reset the state of the incremental parser and will remove the 771This will reset the state of the incremental parser and will remove
772parsed text from the input buffer. This is useful after C<incr_parse> 772the parsed text from the input buffer so far. This is useful after
773died, in which case the input buffer and incremental parser state is left 773C<incr_parse> died, in which case the input buffer and incremental parser
774unchanged, to skip the text parsed so far and to reset the parse state. 774state is left unchanged, to skip the text parsed so far and to reset the
775parse state.
776
777The difference to C<incr_reset> is that only text until the parse error
778occured is removed.
775 779
776=item $json->incr_reset 780=item $json->incr_reset
777 781
778This completely resets the incremental parser, that is, after this call, 782This completely resets the incremental parser, that is, after this call,
779it will be as if the parser had never parsed anything. 783it will be as if the parser had never parsed anything.
780 784
781This is useful if you want ot repeatedly parse JSON objects and want to 785This is useful if you want to repeatedly parse JSON objects and want to
782ignore any trailing data, which means you have to reset the parser after 786ignore any trailing data, which means you have to reset the parser after
783each successful decode. 787each successful decode.
784 788
785=back 789=back
786 790

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines