4 ms·
Heartily agree with this post. One of the things I most dislike about yaml is that they persuaded JSON to remove comments from the spec for some psuedo compata
by teknopaul 7y ago
Heartily agree with this post.
One of the things I most dislike about yaml is that they persuaded JSON to remove comments from the spec for some psuedo compatability nonsense. Without comments, json is less useful for config files and working/documented examples.
I have written a pre-parser to permit comments in JSON and for nodejs apps I use javascript as config. Naturally where security is not a concern.
Yaml always seemed like a mess to me.
Liking Toml, decent compromise.
And linux style: name space value, hash and semi for comments. Unless I really need a heirachy.
- williamdclt 7y ago> I have written a pre-parser to permit comments in JSON and for nodejs apps I use javascript as config. Naturally where security is not a concern. JSON5 allows comments and a few other niceties. I'd trust JSON5 parsers more than my own hand-rolled one