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.44 by root, Mon Jun 25 04:08:17 2007 UTC vs.
Revision 1.45 by root, Mon Jun 25 04:16:46 2007 UTC

344way. C<TO_JSON> must take care of not causing an endless recursion cycle 344way. C<TO_JSON> must take care of not causing an endless recursion cycle
345(== crash) in this case. The name of C<TO_JSON> was chosen because other 345(== crash) in this case. The name of C<TO_JSON> was chosen because other
346methods called by the Perl core (== not the user of the object) are 346methods called by the Perl core (== not the user of the object) are
347usually in upper case letters and to avoid collisions with the C<to_json> 347usually in upper case letters and to avoid collisions with the C<to_json>
348function. 348function.
349
350This setting does not yet influence C<decode> in any way, but in the
351future, global hooks might get installed that influence C<decode> and are
352enabled by this setting.
349 353
350If C<$enable> is false, then the C<allow_blessed> setting will decide what 354If C<$enable> is false, then the C<allow_blessed> setting will decide what
351to do when a blessed object is found. 355to do when a blessed object is found.
352 356
353=item $json = $json->shrink ([$enable]) 357=item $json = $json->shrink ([$enable])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines