| ▲ | iainmerrick 4 hours ago | |||||||
That's a good call. It's a big problem for JSON configs given pure JSON's strict no-comments policy. I like tools that let you use .js or better yet .ts files for config. | ||||||||
| ▲ | dgacmu an hour ago | parent | next [-] | |||||||
Or consider jsonc - json with comments - or jwcc - which is json with comments and trailing commas to make life a little easier. https://nigeltao.github.io/blog/2021/json-with-commas-commen... There are a lot of implementations of all of these, such as https://github.com/tailscale/hujson | ||||||||
| ||||||||
| ▲ | mikkupikku 3 hours ago | parent | prev [-] | |||||||
A lot of json parsers will permit comments even though it isn't meant to be valid. Worth trying it, see if a comment breaks the config, and if not then use comments and don't worry about it. | ||||||||