I continue to hold a firm belief that the reason JSON is so popular is that it covers most use cases without any of the dumb crap that hides in YAML and XML behavior.
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.