As sysadmin I really like to add comments to configuration files.
However JSON doesn’t allow comments.
But there is JSON5, JSON for Humans https://json5.org/
Example from that website:
{
// comments
unquoted: 'and you can quote me on that',
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! \
No \\n's!",
hexadecimal: 0xdecaf,
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
positiveSign: +1,
trailingComma: 'in objects', andIn: ['arrays',],
"backwardsCompatible": "with JSON",
}
Rust crates are available crates.io: Rust Package Registry ( https://crates.io/search?q=JSON5 )
How feasible is it to get stalwart-cli supporting JSON5?