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

If JSON had comments and trailing commas we probably wouldn't have YAML.


Both JSON5 and JSONC have those features. There is a discussion[0] on the VS Code repo to use JSON5 format instead of JSONC for the settings file.

[0]: https://github.com/microsoft/vscode/issues/100688


Use jq then. It has comments, though no trailing commas (we could fix that).

As a bonus using jq code as configuration gets you templating for free.


Nah, I'd still pick YAML any day.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: