Hacker News new | ask | show | jobs
by baq 507 days ago
> Lua is great, but one JSON file is even better

Yeah that single line makes me doubt the whole post, how can a format without comments be an upgrade to any configuration file is beyond me. My customized configs were full of ‘this was broken on this day by something else, link to obscure thread’ before I accepted the way of default.

1 comments

Zed supports comments in the JSON file. I don't think I've seen any editor which uses JSON for configuration not allow comments in the file.
Then it isn’t json anymore! Don’t call it that
I wonder if we can come up with an agreed name for almost json stuff... Maybe json+ and we can tac-on additional characters for what's added. json+c (plus comments), json+t (plus trailing commas), json+tc or json +ct (plus comments and trailing commas), and so on
json5[1] is a thing.

[1] https://json5.org