• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/CPANInternal-159.1/JSON-PP-2.27203/lib/JSON/

Lines Matching refs:true

417             return $$value == 1 ? 'true' : 'false';
425 return $$value eq '1' ? 'true'
696 'JSON text must be an object or array (but found number, string, true, false or null,'
1021 if($word eq 'true'){
1024 return $JSON::PP::true;
1043 decode_error("'true' expected") if ($word =~ /^t/);
1394 $JSON::PP::true = do { bless \(my $dummy = 1), "JSON::PP::Boolean" };
1399 sub true { $JSON::PP::true }
1712 Returns true if the passed scalar represents either JSON::PP::true or
1714 and are also used to represent JSON C<true> and C<false> in Perl strings.
1716 =head2 JSON::PP::true
1718 Returns JSON true value which is blessed object.
1835 If $enable is true (or missing), then the encode method will not generate characters outside
1855 If $enable is true (or missing), then the encode method will encode the resulting JSON
1872 If $enable is true (or missing), then the encode method will encode the JSON result
1925 If C<$enable> is true (or missing), then the C<encode> method will add an extra
1943 If C<$enable> is true (or missing), then the C<encode> method will add an extra
1963 If C<$enable> is true (or missing), then C<decode> will accept some
2012 If C<$enable> is true (or missing), then the C<encode> method will output JSON objects
2035 If C<$enable> is true (or missing), then the C<encode> method can convert a
2054 If $enable is true (or missing), then "encode" will *not* throw an
2073 If C<$enable> is true (or missing), then the C<encode> method will not
2089 If C<$enable> is true (or missing), then C<encode>, upon encountering a
2255 References to the integers C<0> and C<1> are converted into C<true> and C<false>.
2265 Perl arrayrefs and JSON objects become Perl hashrefs. C<true> becomes
2266 C<1> (C<JSON::true>), C<false> becomes C<0> (C<JSON::false>) and
2395 If C<$enable> is true (or missing), then C<decode> will accept
2411 If C<$enable> is true (or missing), then C<decode> will accept
2423 If C<$enable> is true (or missing), then C<decode> will convert
2443 If C<$enable> is true (or missing), then C<decode> will accept these
2458 If C<$enable> is true (or missing), then C<encode> will escape slashes.
2577 =item true, false
2579 These JSON atoms become C<JSON::PP::true> and C<JSON::PP::false>,
2584 print JSON::PP::true . "\n";
2585 => true
2586 print JSON::PP::true + 1;
2589 ok(JSON::true eq '1');
2590 ok(JSON::true == 1);
2633 C<1>, which get turned into C<false> and C<true> atoms in JSON. You can
2634 also use C<JSON::false> and C<JSON::true> to improve readability.
2636 to_json [\0,JSON::PP::true] # yields [false,true]
2638 =item JSON::PP::true, JSON::PP::false, JSON::PP::null
2640 These special values become JSON true and JSON false values,