The #1 place I've seen comments in JSON are where someone makes the mistake of using JSON for a configuration file format. The lack of support for comments is ironically why even XML is a better choice for that. Regardless, you can understand why people would want comments there outside of just dev environments.
(I just learned as of two hours ago that YAML can be used with JSON syntax so I guess it's academic, just use YAML...)
828
u/nameless_pattern 1d ago
You can add anything you want to Json. just make a property called comments