puts JSON, you can turn
the output from that command into a Perl data structure like this
(this is just a demonstration using C<echo> that passes its input
through):
use JSON::PP qw/encode_json deco
l [ foo => { fail_on_stderr => 1,
stdout_filter => sub { $_=decode_json($_) } }, qw/ echo / ];
my $foo = foo( encode_json( { test=>'123' } ) );
print $foo->{test}, "\n"; # prints "123"
=for
se JSON::PP qw/decode_json/;
my $s3api = IPC::Run3::Shell::CLIWrapper->new( { fail_on_stderr => 1,
stdout_filter => sub { $_=decode_json($_) } },
qw/ aws --profile MyProfile --output json s