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

JSON with comments would be ideal.


Which is why many parsers support that. I'm positive you'll find one that does so in pretty much every environment.


In that case, you might want to have a look at JSON5: https://json5.org/

It is pretty niche, but attempts to improve upon JSON in a multitude of ways, one of which is the support for comments: https://spec.json5.org/#comments


The libconfig format is fairly close to that, and it's great!

http://hyperrealm.github.io/libconfig/libconfig_manual.html#...




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

Search: