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.105 by root, Sat May 24 21:55:43 2008 UTC vs.
Revision 1.107 by root, Tue Jun 3 06:43:45 2008 UTC

103 103
104package JSON::XS; 104package JSON::XS;
105 105
106use strict; 106use strict;
107 107
108our $VERSION = '2.2'; 108our $VERSION = '2.21';
109our @ISA = qw(Exporter); 109our @ISA = qw(Exporter);
110 110
111our @EXPORT = qw(encode_json decode_json to_json from_json); 111our @EXPORT = qw(encode_json decode_json to_json from_json);
112 112
113sub to_json($) { 113sub to_json($) {
763 763
764This will reset the state of the incremental parser and will remove the 764This will reset the state of the incremental parser and will remove the
765parsed text from the input buffer. This is useful after C<incr_parse> 765parsed text from the input buffer. This is useful after C<incr_parse>
766died, in which case the input buffer and incremental parser state is left 766died, in which case the input buffer and incremental parser state is left
767unchanged, to skip the text parsed so far and to reset the parse state. 767unchanged, to skip the text parsed so far and to reset the parse state.
768
769=item $json->incr_reset
770
771This completely resets the incremental parser, that is, after this call,
772it will be as if the parser had never parsed anything.
773
774This is useful if you want ot repeatedly parse JSON objects and want to
775ignore any trailing data, which means you have to reset the parser after
776each successful decode.
768 777
769=back 778=back
770 779
771=head2 LIMITATIONS 780=head2 LIMITATIONS
772 781

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines