YAML is a Superset of JSON
According to the YAML specification, YAML is a superset of JSON. Thatmeans that any valid JSON structure ought to be valid in YAML.
This has an advantage: Sometimes template developers may find it easierto express a data structure with a JSON-like syntax rather than deal withYAML’s whitespace sensitivity.
As a best practice, templates should follow a YAML-like syntax _unless_the JSON syntax substantially reduces the risk of a formatting issue.