Re:JSON as configuration files: please don’t (2016)
by ChrisSD on Saturday April 13, 2019 @03:13PM
(#19655130)
The intentional lack of comments cements json's position as a (human readable) data interchange format. It's not designed to be anything else. Which is fine. There's nothing wrong with a file format being focused on one goal.
That's easily the worst argument against comments I've ever heard! Would you argue against comments in code because some jackass could abuse it to insert custom compiler directives or something? Ridiculous. The good comments do easily outweighs any harm some moron is going to do to himself by parsing comments for data.
I don't like XML any more than the rest of you, but praising json for not having comments just smacks of sour grapes.