kage Config::JSON;
$Config::JSON::VERSION = '1.5202';
use strict;
use Moo;
use Carp;
use File::Spec;
use JSON 2.0;
use List::Util;
use constant FILE_HEADER => "# config-file-type: JSON 1\n";
#---
ndef;
my $json = <$FILE>;
close($FILE);
my $conf = eval { JSON->new->relaxed->utf8->decode($json); };
confess "Couldn't parse JSON in config file '$path
f->pathToFile;
# convert data to json
my $json = JSON->new->pretty->utf8->canonical->encode($self->config);
my $to_write = FILE_HEADER . "\n" . $json;
my $needed_bytes = length $to_w