Hacker News new | ask | show | jobs
by dgfitz 301 days ago
My gripe with json is the lack of support for comments. Whenever I come across a config file that has comments about what the config line(s) mean, I am so grateful.

Whenever I come across a json config file, I kind of despair a little and start poking at the code in hopes there are comments about what the config means.

1 comments

I totally agree with your gripe about JSON's lack of comments. There were people AFAIK who tried to write a spec with comments (and maybe dangling commas? was it called JSON5?) but by then it probably was too late.
My biggest issue with JSON5 is as far as I'm aware, if you update settings programmatically, you tend to lose comments... not sure of any implementation that preserves them.