JSONC is a superset of JSON which supports comments ↦
JSON formatted files are readable to humans but the lack of comments decreases readability. With JSONC, you can use block (
/* */
) and single line (//
) comments to describe the functionality. Microsoft VS Code also uses this format in their configuration files likesettings.json
,keybindings.json
,launch.json
, etc.
This is a Go-only implementation, but the concept is portable to any language (hint, hint).
Discussion
Sign in or Join to comment or subscribe
Kurok
2019-09-17T09:09:48Z ago
I think this has existed in other languages for years. https://github.com/Microsoft/node-jsonc-parser for JS for example.