What carries over, and what can't
Keys, strings, numbers, true/false, null, lists and nested maps convert both ways. Several YAML documents separated by --- become a JSON array. Anchors and aliases are expanded into their values.
YAML comments have no place in JSON, so they're dropped. Dates written as YAML timestamps become ISO strings.