3 ms·
> JSON is good enough for anything I've done. I want comments in config files.
by ihateolives 3y ago
> JSON is good enough for anything I've done.
I want comments in config files.
- skrebbel 3y agoJSONC is exactly that, JSON with comments. Works fine, eg typescript’s tsconfig file is JSONC and I’ve yet to find a problem with it.
- ok_computer 3y agoA horrible workaround I use is a blank redundant key and a leading // in my string to draw my eye to it. This only preserves the last comment in my python dictionary but I only use comments to work in the json file. { “”:”// comment here”, “Entry”:[-1,0,2], “”:”// next comment”, “Flag”:true }
- timmytokyo 3y agoAnd trailing commas on final list elements and object properties.
- bobbylarrybobby 3y agohttps://json5.org https://json5.org