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

Correct. YAML and JSON can be parsed into the same tree structure but are completely separate syntaxes.


No, they aren't. From the YAML site [emphasis mine]:

"YAML can therefore be viewed as a natural superset of JSON, offering improved human readability and a more complete information model. This is also the case in practice; every JSON file is also a valid YAML file."

http://yaml.org/spec/1.2/spec.html#id2759572

You can parse any JSON file using a YAML parser.


I … OK, I recind my earlier statement! TIL :)




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

Search: