4 ms·
if you're using json as a config file you can choose a json parser that supports comments. there are a number of them
by querulous 9y ago
if you're using json as a config file you can choose a json parser that supports comments. there are a number of them
- zackelan 9y agoAt that point you're not writing JSON though. Once you start bolting on non-standard bells and whistles, why not recognize that JSON was never meant to be used for config files, and switch to something that was, like TOML [0]? 0: https://npf.io/2014/08/intro-to-toml/ https://npf.io/2014/08/intro-to-toml/