Graph::VERSION = '1.0.1';
}
# ABSTRACT: create JSON with graph data for Status Board iPad App
use strict;
use warnings;
use utf8;
use Carp;
use JSON;
use File::Slurp;
use Clone qw(clone);
my $tru
sub get_json {
my ($self) = @_;
my $json = to_json(
$self->__get_data()
);
return $json;
}
sub get_pretty_json {
my ($self) = @_;
my $pretty_json = to_json(
);
return $pretty_json;
}
sub write_json {
my ($self, $file_name) = @_;
write_file(
$file_name,
{binmode => ':utf8'},
$self->get_json(),
);
return $f