se JSON;
use Carp qw(croak);
our $VERSION = v0.16.0;
=head1 Name
PGXN::Meta::Validator - Validate PGXN distribution metadata structures
=head1 Synopsis
my $struct = decode_json_file('META.json')
lass;
}
=head3 C<load_file>
my $meta = PGXN::Meta::Validator->load_file('META.json');
Reads in the specified JSON file and passes the resulting data structure to
C<new()>, returning the resulting
nts are not valid
JSON.
=cut
sub load_file {
my ($class, $file) = @_;
croak "load_file() requires a valid, readable filename"
unless -r $file;
$class->new(JSON->new->decode(do