Use relaxed json parser to allow comments in configs

This commit is contained in:
eleksir
2020-09-12 00:30:30 +03:00
parent 814a7ddb2b
commit e7f0eaeceb

View File

@@ -35,7 +35,8 @@ sub loadConf () {
}
close C;
return decode_json ($json);
my $j = JSON::XS->new->utf8->relaxed;
return $j->decode ($json);
}
sub saveConf($) {