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.157 by root, Fri Feb 26 21:46:45 2016 UTC vs.
Revision 1.158 by root, Thu Sep 1 11:38:39 2016 UTC

748C<incr_skip> to skip the erroneous part). This is the most common way of 748C<incr_skip> to skip the erroneous part). This is the most common way of
749using the method. 749using the method.
750 750
751And finally, in list context, it will try to extract as many objects 751And finally, in list context, it will try to extract as many objects
752from the stream as it can find and return them, or the empty list 752from the stream as it can find and return them, or the empty list
753otherwise. For this to work, there must be no separators between the JSON 753otherwise. For this to work, there must be no separators (other than
754objects or arrays, instead they must be concatenated back-to-back. If 754whitespace) between the JSON objects or arrays, instead they must be
755an error occurs, an exception will be raised as in the scalar context 755concatenated back-to-back. If an error occurs, an exception will be
756case. Note that in this case, any previously-parsed JSON texts will be 756raised as in the scalar context case. Note that in this case, any
757lost. 757previously-parsed JSON texts will be lost.
758 758
759Example: Parse some JSON arrays/objects in a given string and return 759Example: Parse some JSON arrays/objects in a given string and return
760them. 760them.
761 761
762 my @objs = JSON::XS->new->incr_parse ("[5][7][1,2]"); 762 my @objs = JSON::XS->new->incr_parse ("[5][7][1,2]");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines