4 ms·
Correct. YAML and JSON can be parsed into the same tree structure but are completely separate syntaxes.
by bjacobel 11y ago
Correct. YAML and JSON can be parsed into the same tree structure but are completely separate syntaxes.
- icebraining 11y agoNo, 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 http://yaml.org/spec/1.2/spec.html#id2759572 You can parse any JSON file using a YAML parser.
- robin_reala 11y agoI … OK, I recind my earlier statement! TIL :)