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.74 by root, Wed Nov 28 13:57:15 2007 UTC vs.
Revision 1.75 by root, Thu Nov 29 13:35:35 2007 UTC

427 JSON::XS->new->allow_nonref->encode ("Hello, World!") 427 JSON::XS->new->allow_nonref->encode ("Hello, World!")
428 => "Hello, World!" 428 => "Hello, World!"
429 429
430=item $json = $json->allow_blessed ([$enable]) 430=item $json = $json->allow_blessed ([$enable])
431 431
432=item $enabled = $json->get_allow_bless 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines