Re:JSON is not a YAML subset (2022)
by ethan_smith on Friday August 01, 2025 @09:20PM
(#44764181)
Configuration systems like Kubernetes and Docker Compose use YAML parsers that accept JSON as input, allowing users to write in either format without changing the tooling.
[ Parent
| on HN ]
but the things is there is a difference between
1) a parser which can handle both (based on detecting both and then switches the parsing depending on it)
2) a parser which is made for YAML and happens to be able to parse JSON