YAML is not a superset of JSON, it's a totally different format.
Re:Comments in JSON
by TomasSedovic on Friday August 02, 2013 @11:17AM
(#6147437)
According to the spec, YAML 1.2 is:
"The primary objective of this revision is to bring YAML into compliance with JSON as an official subset."
http://yaml.org/spec/1.2/spec.html
If I understand it correctly, the earlier versions were close but not 100% compatible.
YAML 1.2 is a super set of JSON. Check out the spec itself: http://www.yaml.org/spec/1.2/spec.html#id2759572
[1]: http://en.wikipedia.org/wiki/Yaml