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.45 by root, Mon Jun 25 04:16:46 2007 UTC vs.
Revision 1.46 by root, Mon Jun 25 04:21:14 2007 UTC

341 341
342The C<TO_JSON> method may safely call die if it wants. If C<TO_JSON> 342The C<TO_JSON> method may safely call die if it wants. If C<TO_JSON>
343returns other blessed objects, those will be handled in the same 343returns other blessed objects, those will be handled in the same
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 by 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 349
350This setting does not yet influence C<decode> in any way, but in the 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 351future, global hooks might get installed that influence C<decode> and are

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines