e App::jsonsel;
our $DATE = '2021-02-19'; # DATE
our $VERSION = '0.008'; # VERSION
use 5.010001;
use strict;
use warnings;
use App::CSelUtils;
our %SPEC;
sub _encode_json {
state $json = do {
re JSON::MaybeXS;
JSON::MaybeXS->new(allow_nonref=>1, canonical=>1);
};
$json->encode($_[0]);
}
sub _decode_json {
state $json = do {
require JSON::MaybeXS;
JSON::
MaybeXS->new(allow_nonref=>1, canonical=>1);
};
$json->decode($_[0]);
}
$SPEC{jsonsel} = {
v => 1.1,
summary => 'Select JSON elements using CSel (CSS-selector-like) syntax',
args