Group
Extension

Matches 2

JSON-PP ( I/IS/ISHIGAKI/JSON-PP-4.17_01.tar.gz, ISHIGAKI, 2023; MetaCPAN )
JSON-PP/lib/JSON/PP.pm ( view source; MetaCPAN )
package JSON::PP;

# JSON-2.0

use 5.008;
use strict;

use Exporter ();
BEGIN { our @ISA = ('Exporter') }

use overload ();
use JSON::PP::Boolean;

use Carp ();
use Scalar::Util qw(blessed reftype ref
addr);
#use Devel::Peek;

our $VERSION = '4.17_01';

our @EXPORT = qw(encode_json decode_json from_json to_json);

# instead of hash-access, i tried index-access for speed.
# but this method is not fa
UNKNOWN        => 18;
use constant P_ALLOW_TAGS           => 19;

use constant USE_B => $ENV{PERL_JSON_PP_USE_B} || 0;
use constant CORE_BOOL => defined &builtin::is_bool;

my $invalid_char_re;

BEGIN
JSON-PP ( I/IS/ISHIGAKI/JSON-PP-4.17_01.tar.gz, ISHIGAKI, 2023; MetaCPAN )
JSON-PP/lib/JSON/PP/Boolean.pm ( view source; MetaCPAN )
package JSON::PP::Boolean;

use strict;
use warnings;
use overload ();
overload::unimport('overload', qw(0+ ++ -- fallback));
overload::import('overload',
    "0+"     => sub { ${$_[0]} },
    "++"   

    fallback => 1,
);

our $VERSION = '4.17_01';

1;

__END__

=head1 NAME

JSON::PP::Boolean - dummy module providing JSON::PP::Boolean

=head1 SYNOPSIS

 # do not "use" yourself

=head1 DESCRIPTION
verload resolution for Storable and similar modules. See
L<JSON::PP> for more info about this class.

=head1 AUTHOR

This idea is from L<JSON::XS::Boolean> written by Marc Lehmann <schmorp[at]schmorp.

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