… | |
… | |
467 | |
467 | |
468 | =item $json = $json->allow_blessed ([$enable]) |
468 | =item $json = $json->allow_blessed ([$enable]) |
469 | |
469 | |
470 | =item $enabled = $json->get_allow_blessed |
470 | =item $enabled = $json->get_allow_blessed |
471 | |
471 | |
472 | See "OBJECT SERIALISATION" for details. |
472 | See L<OBJECT SERIALISATION> for details. |
473 | |
473 | |
474 | If C<$enable> is true (or missing), then the C<encode> method will not |
474 | If C<$enable> is true (or missing), then the C<encode> method will not |
475 | barf when it encounters a blessed reference that it cannot convert |
475 | barf when it encounters a blessed reference that it cannot convert |
476 | otherwise. Instead, a JSON C<null> value is encoded instead of the object. |
476 | otherwise. Instead, a JSON C<null> value is encoded instead of the object. |
477 | |
477 | |