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.103 by root, Tue Apr 29 16:07:56 2008 UTC vs.
Revision 1.104 by root, Thu May 8 15:33:06 2008 UTC

1015Other unblessed references are generally not allowed and will cause an 1015Other unblessed references are generally not allowed and will cause an
1016exception to be thrown, except for references to the integers C<0> and 1016exception to be thrown, except for references to the integers C<0> and
1017C<1>, which get turned into C<false> and C<true> atoms in JSON. You can 1017C<1>, which get turned into C<false> and C<true> atoms in JSON. You can
1018also use C<JSON::XS::false> and C<JSON::XS::true> to improve readability. 1018also use C<JSON::XS::false> and C<JSON::XS::true> to improve readability.
1019 1019
1020 encode_json [\0,JSON::XS::true] # yields [false,true] 1020 encode_json [\0, JSON::XS::true] # yields [false,true]
1021 1021
1022=item JSON::XS::true, JSON::XS::false 1022=item JSON::XS::true, JSON::XS::false
1023 1023
1024These special values become JSON true and JSON false values, 1024These special values become JSON true and JSON false values,
1025respectively. You can also use C<\1> and C<\0> directly if you want. 1025respectively. You can also use C<\1> and C<\0> directly if you want.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines