Ironically, all JSON documents are valid YAML. YAML is actually a superset of JSON.
To compound the misery YAML is whitespace indented with some extra bonkers rules. So even your JSON subset in YAML needs to obey it.
Mix of flow and block makes both modes worse. However it also makes a lot of sense.
Ironically, all JSON documents are valid YAML. YAML is actually a superset of JSON.