In Defense of YAML



  • YAML integrates and builds upon concepts described by, Java, Perl, Python, Ruby, RFC0822 (MAIL, RFC1866 (HTML, RFC2045 (MIME, RFC2396 (URI, XML, SAX, SOAP , and JSON .

  • JSON's RFC4627 requires that mappings keys merely β€œSHOULD” be unique, while YAML insists they β€œMUST” be. Technically, YAML therefore complies with the JSON spec, choosing to treat duplicates as an error. In practice, since JSON is silent on the semantics of such duplicates, the only portable JSON files are those with unique keys, which are therefore valid YAML files.

  • Tilde (~) means NULL Source