I'm using autobox as it allows me to do use JSON::Path on arbitrary variable like this:
use autobox::JSON::Path;
use Mojo::Util qw/dumper/;
my $w = { foo => 'bar', baz => [ 1, 2, 3 ] };
print dumper $w->get('$.baz');
where autobox::JSON::Path is here (still early code).
This means however that autoboxing affects all hashrefs and arrayrefs.
Is there a way to do it so that it affects only specific variables? or is it actually the same as doing
my $w = autobox::JSON::Path::Get->new({ foo => 'bar', baz => [ 1, 2, 3 ] })
and that's it?