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

Hm, what JSON documents have a different meaning in YAML? I'd have hoped that with all names & strings being quoted and leading zeros being disallowed, that wouldn't be the case.


Maybe duplicate keys in JSON counts? Some JSON parsers choose the first and some choose the last, and YAML directly forbid that.


I have never come across a case where JSON can't take the place of YAML, but I guess there could be edge cases.


You can easily corrupt the meaning of your JSON by adding whitespace in YAML.




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

Search: