package JSON::Path;
$JSON::Path::VERSION = '1.0.6';
use strict;
use warnings;
# VERSION
use Exporter::Shiny qw/ jpath jpath1 jpath_map /;
our $AUTHORITY = 'cpan:POPEFELIX';
our $Safe = 1;
use
Carp;
use JSON::MaybeXS qw/decode_json/;
use JSON::Path::Evaluator;
use Scalar::Util qw[blessed];
use LV ();
use overload '""' => \&to_string;
sub jpath {
my ( $object, $expression ) = @_;
m
return $$self;
}
sub paths {
my ( $self, $object ) = @_;
my @paths = JSON::Path::Evaluator::evaluate_jsonpath( $object, "$self", want_path => 1);
return @paths;
}
sub get {
my (
package JSON::Path::Evaluator;
$JSON::Path::Evaluator::VERSION = '1.0.6';
use strict;
use warnings;
# ABSTRACT: A module that recursively evaluates JSONPath expressions with native support for Javasc
ript-style filters
use Carp;
use Carp::Assert qw(assert);
use JSON::MaybeXS;
use JSON::Path::Constants qw(:operators :symbols);
use JSON::Path::Tokenizer qw(tokenize);
use List::Util qw/pairs uniq/;
ssed refaddr/;
use Storable qw/dclone/;
use Try::Tiny;
# VERSION
use Exporter::Shiny qw/evaluate_jsonpath/;
our $AUTHORITY = 'cpan:POPEFELIX';
Readonly my $OPERATOR_IS_TRUE => 'IS_TRUE';
Rea
package JSON::Path::Tokenizer;
$JSON::Path::Tokenizer::VERSION = '1.0.6';
use strict;
use warnings;
use Carp;
use Readonly;
use JSON::Path::Constants qw(:symbols :operators);
use Exporter::Shiny 'tok
$TOKEN_QUOTE => 1, # "
);
# my $invocation = 0;
# ABSTRACT: Helper class for JSON::Path::Evaluator. Do not call directly.
# Take an expression and break it up into tokens
sub tok
ized/;
return $token;
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
JSON::Path::Tokenizer - Helper class for JSON::Path::Evaluator. Do not call directly.
=head1 VERSION
version 1.0.6
=hea
package JSON::Path::Constants;
$JSON::Path::Constants::VERSION = '1.0.6';
use strict;
use warnings;
# ABSTRACT: Constants used in the JSON::Path distribution
# VERSION
use Readonly;
use Exporter::
QUAL_SIGN . $TILDE_SIGN;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
JSON::Path::Constants - Constants used in the JSON::Path distribution
=head1 VERSION
version 1.0.6
=head1 AUTHOR
Aurelia