=head1 NAME
JSON::XS - JSON serialising/deserialising, done correctly and fast
=encoding utf-8
JSON::XS - 正しくて高速な JSON シリアライザ/デシリアライザ
(http://fleu
o.jp/perldoc/mix/lib/JSON/XS.html)
=head1 SYNOPSIS
use JSON::XS;
# exported functions, they croak on error
# and expect/generate UTF-8
$utf8_encoded_json_text = encode_json $perl_hash_or_array
ref;
$perl_hash_or_arrayref = decode_json $utf8_encoded_json_text;
# OO-interface
$coder = JSON::XS->new->ascii->pretty->allow_nonref;
$pretty_printed_unencoded = $coder->encode ($perl_scalar);
=head1 NAME
JSON::XS::Boolean - dummy module providing JSON::XS::Boolean
=head1 SYNOPSIS
# do not "use" yourself
=head1 DESCRIPTION
This module exists only to provide overload resolution for Sto
that was decoded by JSON::XS versions
before 3.0.
Since 3.0, JSON::PP::Boolean has replaced it. Support for
JSON::XS::Boolean will be removed in a future release.
=cut
use JSON::XS ();
1;
=head1
HORT_STRING_LEN 16384 // special-case strings of up to this size
#define DECODE_WANTS_OCTETS(json) ((json)->flags & F_UTF8)
#define SB do {
#define SE } while (0)
#if __GNUC__ >= 3
# define expect(
XCEEDED "json text or perl structure exceeds maximum nesting level (max_depth set too low?)"
#ifdef USE_ITHREADS
# define JSON_STASH (expect_true (json_stash) ? json_stash : gv_stashpv ("JSON::XS", 1
(bool_ ## value) ? bool_ ## value : get_bool ("Types::Serialiser::" # value))
#else
# define JSON_STASH json_stash
# define BOOL_STASH bool_stash
# define GET_BOOL(value) bool_ ## value
#endif
// the