I used to do this frequently. Take a JSON file, add comments, and parse it as YAML.
Then I discovered a handful of YAML parsers in various languages support code execution on parsing. Which basically killed YAML for me.
Then I discovered a handful of YAML parsers in various languages support code execution on parsing. Which basically killed YAML for me.