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.75 by root, Thu Nov 29 13:35:35 2007 UTC vs.
Revision 1.76 by root, Sun Dec 2 15:34:13 2007 UTC

432=item $enabled = $json->get_allow_blessed 432=item $enabled = $json->get_allow_blessed
433 433
434If C<$enable> is true (or missing), then the C<encode> method will not 434If C<$enable> is true (or missing), then the C<encode> method will not
435barf when it encounters a blessed reference. Instead, the value of the 435barf when it encounters a blessed reference. Instead, the value of the
436B<convert_blessed> option will decide whether C<null> (C<convert_blessed> 436B<convert_blessed> option will decide whether C<null> (C<convert_blessed>
437disabled or no C<to_json> method found) or a representation of the 437disabled or no C<TO_JSON> method found) or a representation of the
438object (C<convert_blessed> enabled and C<to_json> method found) is being 438object (C<convert_blessed> enabled and C<TO_JSON> method found) is being
439encoded. Has no effect on C<decode>. 439encoded. Has no effect on C<decode>.
440 440
441If C<$enable> is false (the default), then C<encode> will throw an 441If C<$enable> is false (the default), then C<encode> will throw an
442exception when it encounters a blessed object. 442exception when it encounters a blessed object.
443 443

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines