package Config::Any::JSON;
use strict;
use warnings;
use base 'Config::Any::Base';
=head1 NAME
Config::Any::JSON - Load JSON config files
=head1 DESCRIPTION
Loads JSON files. Example:
{
turn an array of valid extensions (C<json>, C<jsn>).
=cut
sub extensions {
return qw( json jsn );
}
=head2 load( $file )
Attempts to load C<$file> as a JSON file.
=cut
sub load {
my $cla
};
close $fh;
eval { require JSON::DWIW; };
unless( $@ ) {
my $decoder = JSON::DWIW->new;
my ( $data, $error ) = $decoder->from_json( $content );
die $error if $e