JSON::Eval;
require Carp;
Carp::croak($@);
};
package JSON::Eval;
our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION = '0.002';
use Scalar::Util qw(blessed);
sub new {
my $class = shift;
my $json
= @_ ? $_[0] : do { require JSON::MaybeXS; JSON::MaybeXS->new };
bless \$json, $class;
}
sub AUTOLOAD {
my $self = shift;
our $AUTOLOAD;
( my $method = $AUTOLOAD ) =~ s/.*:://;
my $r = $$self->
{
require Carp;
Carp::croak("Cannot serialize coderef that closes over lexical variables to JSON: ".join ",", sort keys %$lexicals);
}
require B::Deparse;
my $dp = 'B::Deparse'->new;
$dp