News for hackers. Stuff that matters.
Re:JSON as configuration files: please don’t (2016) by tonyarkles on Saturday April 13, 2019 @02:07PM (#19654660)
> For programmers, JSON works fine in my experience.

The author mentions this, and I very strongly agree. What JSON significantly misses is the ability to have comments in your configuration files. I'm not going to hold up the Apache config files as an example of amazing config formats, but... here's an example: https://svn.apache.org/repos/infra/websites/cms/webgui/conf/...

That's awesome. It describes options that are available and not enabled, and what they do. Right. In. The. File. Comparing that to, say, webpack config... there's a pile of research needed to figure out what options are even available, let alone what they do.

Re:JSON as configuration files: please don’t (2016) by jlarocco on Saturday April 13, 2019 @04:26PM (#19655515)
Yeah, that's the #1 problem with JSON as a config file format, IMO, and the Apache logs, among others, are a perfect example of why.

All the other arguments for or against it boil down to personal preference, but not having comments is a real miss.