"[email protected]" Unstructured Text Key/Value pairs Multi-line folding CRLF followed by LWSP character Delimiting and Quoting Optional, not part of string, c-style escape sequences
End of line normalization from HTML • Collections & scalar data types from Perl, Python, Ruby • Incremental interfaces and streaming one-pass interfaces supports large documents
Lowest common denominator • Trivial to generate and parse JSON • Human readability • Arbitrary native data structures • Complex processing across environments YAML
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.
most limited single_quotes: - 'keith''s single quotes' - 'bare \ is ok' double_quotes: - "only flow that can express arbitrary strings" - "\\ escape sequences, but must quote \" and \\"