Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there no cases where well-formed JSON could be subject to the problems covered in the article, when parsed by a compliant YAML parser? I'm asking because I know nothing about YAML and not much more about JSON.


Not that I know. JSON requires strings to be quoted which is basically the problem here. Of course it’s not a great human writable configuration format (no comments being a huge problem).

I’m just pointing out that it should be very simple to swap a YAML file for a JSON file in any system that accepts YAML


JSON is stricter than YAML so that class of issues is avoided.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: