# Connector::Proxy::JSON
#
# Proxy class for reading a JSON file
package Connector::Proxy::JSON;
use strict;
use warnings;
use English;
use JSON;
use Data::Dumper;
use Moose;
extends 'Connector::B
eval {
$config = decode_json($content);
};
if ($@ || !$config || !ref $config) {
$self->log()->error('Proxy::JSON error parsing content from file '.$file)
e );
}
$self->log()->debug('Proxy::JSON loading configuration from file '.$file);
} else {
$self->log()->warn('Proxy::JSON configuration file '.$file.' not found ');
}