File::Spec::Functions qw(catfile);
use Getopt::Std;
use HTTP::Request;
use IO::Barf qw(barf);
use JSON::XS;
use LWP::UserAgent;
use METS::Files;
use Perl6::Slurp qw(slurp);
our $VERSION = 0.04;
# Co
I for children JSON.
my $json_uri = $self->{'_kramerius_obj'}->url.'search/api/v5.0/item/uuid:'.
$object_id.'/children';
# Get JSON.
my $req = HTTP::Request->new('GET' => $json_uri);
my $r
equest($req);
my $json;
if ($res->is_success) {
$json = $res->content;
barf(catfile($dir_to_store_files, $object_id.'.json'), $json);
} else {
err "Cannot get '$json_uri' URI.",
'HT