Use relaxed json parser to allow comments in configs
This commit is contained in:
@@ -35,7 +35,8 @@ sub loadConf () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close C;
|
close C;
|
||||||
return decode_json ($json);
|
my $j = JSON::XS->new->utf8->relaxed;
|
||||||
|
return $j->decode ($json);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub saveConf($) {
|
sub saveConf($) {
|
||||||
|
|||||||
Reference in New Issue
Block a user