ge App::MARC::Validator;
use strict;
use warnings;
use Class::Utils qw(set_params);
use Cpanel::JSON::XS;
use English;
use Getopt::Std;
use IO::Barf qw(barf);
use MARC::File::XML (BinaryEncoding =>
ugin_obj->name} = $plugin_obj->struct;
}
# JSON output.
my $j = Cpanel::JSON::XS->new;
if ($self->{'_opts'}->{'p'}) {
$j = $j->pretty;
}
my $json = $j->canonical(1)->encode($output_struct_hr)
f->{'_opts'}->{'o'}) {
barf($self->{'_opts'}->{'o'}, encode_utf8($json));
# Print to STDOUT.
} else {
print encode_utf8($json);
}
return 0;
}
sub _postprocess_plugins {
my $self = shift;