Group
Extension

Matches 4

Cpanel-JSON-XS ( R/RU/RURBAN/Cpanel-JSON-XS-4.40.tar.gz, RURBAN, 2025; MetaCPAN )
Cpanel-JSON-XS/XS.pm ( view source; MetaCPAN )
package Cpanel::JSON::XS;
our $VERSION = '4.40';
our $XS_VERSION = $VERSION;
# $VERSION = eval $VERSION;

=pod

=head1 NAME

Cpanel::JSON::XS - cPanel fork of JSON::XS, fast and correct serializing

=
Cpanel::JSON::XS;

 # exported functions, they croak on error
 # and expect/generate UTF-8

 $utf8_encoded_json_text = encode_json $perl_hash_or_arrayref;
 $perl_hash_or_arrayref  = decode_json $utf8_
d_json_text;

 # OO-interface

 $coder = Cpanel::JSON::XS->new->ascii->pretty->allow_nonref;
 $pretty_printed_unencoded = $coder->encode ($perl_scalar);
 $perl_scalar = $coder->decode ($unicode_json_t
Cpanel-JSON-XS ( R/RU/RURBAN/Cpanel-JSON-XS-4.40.tar.gz, RURBAN, 2025; MetaCPAN )
Cpanel-JSON-XS/XS/Type.pm ( view source; MetaCPAN )
:JSON::XS::Type;

=pod

=head1 NAME

Cpanel::JSON::XS::Type - Type support for JSON encode

=head1 SYNOPSIS

 use Cpanel::JSON::XS;
 use Cpanel::JSON::XS::Type;


 encode_json([10, "10", 10.25], [JSON
_TYPE_INT, JSON_TYPE_INT, JSON_TYPE_STRING]);
 # '[10,10,"10.25"]'

 encode_json([10, "10", 10.25], json_type_arrayof(JSON_TYPE_INT));
 # '[10,10,10]'

 encode_json(1, JSON_TYPE_BOOL);
 # 'true'

 my 
ey2 => "2", key3 => 1 };
 my $type_spec = { key1 => JSON_TYPE_STRING, key2 => JSON_TYPE_INT, key3 => JSON_TYPE_BOOL };
 my $json_string = encode_json($perl_struct, $type_spec);
 # '{"key1":"1","key2":
Cpanel-JSON-XS ( R/RU/RURBAN/Cpanel-JSON-XS-4.40.tar.gz, RURBAN, 2025; MetaCPAN )
Cpanel-JSON-XS/XS.xs ( view source; MetaCPAN )
i.e. "JSON" in big-endian
#define JSON_MAGIC 0x4A534F4E

/* types */
#define JSON_TYPE_SCALAR       0x0000
#define JSON_TYPE_BOOL         0x0001
#define JSON_TYPE_INT          0x0002
#define JSON_TYPE
03
#define JSON_TYPE_STRING       0x0004

/* flags */
#define JSON_TYPE_CAN_BE_NULL  0x0100

/* null type */
#define JSON_TYPE_NULL         JSON_TYPE_CAN_BE_NULL

/* classes */
#define JSON_TYPE_CLASS
l::JSON::XS::Type"
#define JSON_TYPE_ARRAYOF_CLASS  "Cpanel::JSON::XS::Type::ArrayOf"
#define JSON_TYPE_HASHOF_CLASS   "Cpanel::JSON::XS::Type::HashOf"
#define JSON_TYPE_ANYOF_CLASS    "Cpanel::JSON::
Cpanel-JSON-XS ( R/RU/RURBAN/Cpanel-JSON-XS-4.40.tar.gz, RURBAN, 2025; MetaCPAN )
Cpanel-JSON-XS/XS/Boolean.pm ( view source; MetaCPAN )
=head1 NAME

Cpanel::JSON::XS::Boolean - true and false values

=head1 SYNOPSIS

  # do not "use" yourself

See L<Cpanel::JSON::XS/"true, false">

=head1 DESCRIPTION

This module exists only to provid
r Storable
and similar modules and interop with L<JSON::XS> booleans.  See
L<Cpanel::JSON::XS> for more info about this class.

=cut

use Cpanel::JSON::XS ();

1;

=head1 AUTHOR

 Marc Lehmann <schmor

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.