3 ms·
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 co
by r3trohack3r 2y ago
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.
- neallindsay 2y agoIt's definitely no good for JSON that you don't write yourself. But that's not the JSON that you want to write comments into.
- kstrauser 2y agoI appreciate that Python makes you choose between a “full” parser and a safe one.