"... JSON doesn't support comments..."
It does if you treat them as data:
#!/usr/bin/env perl
use strict;
use warnings;
use JSON::Tiny qw(decode_json encode_json);
use Data::Dump;
my $conf = encode_json {
foo => qw(bar),
nose => qw(cuke),
comment => qw(RTFM)
};
my $hash = decode_json($conf);
dd $hash;
__END__
{ comment => "RTFM", foo => "bar", nose => "cuke" }
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help