3 ms·
Lack of comments, (nice) multiline strings and trailing-comma support make JSON a real pain for config in practice. I've started using YAML parsers for all of o
by drodgers 8y ago
Lack of comments, (nice) multiline strings and trailing-comma support make JSON a real pain for config in practice.
I've started using YAML parsers for all of our (once) JSON config files, just to get those features (while preserving the curly-braces, commas, and other JSON-isms). Yes it allows a misguided dev to abuse YAML (mis-)features, but a combination of coding standards and linters can fix that.
Being a super-set of JSON is YAML's best feature.
I would never consider it for untrusted input though.