… | |
… | |
666 | to_json [\0,JSON::XS::true] # yields [false,true] |
666 | to_json [\0,JSON::XS::true] # yields [false,true] |
667 | |
667 | |
668 | =item JSON::XS::true, JSON::XS::false |
668 | =item JSON::XS::true, JSON::XS::false |
669 | |
669 | |
670 | These special values become JSON true and JSON false values, |
670 | These special values become JSON true and JSON false values, |
671 | respectively. You cna alos use C<\1> and C<\0> directly if you want. |
671 | respectively. You can also use C<\1> and C<\0> directly if you want. |
672 | |
672 | |
673 | =item blessed objects |
673 | =item blessed objects |
674 | |
674 | |
675 | Blessed objects are not allowed. JSON::XS currently tries to encode their |
675 | Blessed objects are not allowed. JSON::XS currently tries to encode their |
676 | underlying representation (hash- or arrayref), but this behaviour might |
676 | underlying representation (hash- or arrayref), but this behaviour might |