Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i miss comments so badly in json, especially when used in config files


Just add a "$comment" key. The only problem will be if the parser is too strict and rejects the unrecognized key.


Or the linter requires sorted keys.

JSON is just about the worst config format imaginable. I’d rather write my configs in xml and I really don’t like xml.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: