2 ms·
People use JSON For configuration files? What a PITA. Use a tool suited to the job, eg, TOML. https://en.m.wikipedia.org/wiki/TOML https://en.m.wikipedia.org/w
by argvargc 6y ago
People use JSON For configuration files? What a PITA. Use a tool suited to the job, eg, TOML.
https://en.m.wikipedia.org/wiki/TOML https://en.m.wikipedia.org/wiki/TOML
Not that there's anything wrong with adding comments and commas to JSON. Call it JSONv2, keep the .json extension and let people bump around upgrading for a bit. It's hardly much of a change but has significant benefits, even outside the config file use. For instance it can sometimes be useful to annotate raw data, and it'd be nice to have that built in. Certainly the commas is a no-brainer.