Data-model overlap
Both JSON and YAML 1.2 share the core JSON data model: scalars (strings, numbers, booleans, null), sequences (arrays), and mappings (objects). Anything you can express in JSON has a direct YAML equivalent; the reverse is mostly true, with the exception of YAML's non-string mapping keys and stream-level features.