← Back to context

Comment by LauraMedia

7 hours ago

If I actually require comments, dangling commas etc. I'm always using JSON5 instead [1].

[1] https://json5.org/

I've never had a need for comments that `{ "comment": "Hello, world" }` couldn't solve. Dangling commas would be nice, but between my auto-formatting editor and `JSON.stringify()`, they're never an issue either.

  • Doesn't work with strict schema validators that disallow unknown keys. I'm looking at you, tauri.conf.json.