t;
use warnings FATAL => 'all';
use utf8;
use open qw(:std :utf8);
use Carp;
use HTTP::Tiny;
use JSON::PP;
use MIME::Base64;
sub new {
my ($class, @params) = @_;
croak "You should use new
nsport_security_state_static.json?format=TEXT';
my $base64_content = $self->_get_content_from_url( $url );
my $content = decode_base64 $base64_content;
my $json = $self->_get_data_without_
comments( $content );
my $data = decode_json $json;
return $data;
}
sub _get_data_without_comments {
my ($self, $data) = @_;
my $output;
foreach my $line (split /\n/, $data) {