How are JSON arrays converted to YAML?
JSON arrays become YAML sequences, where each item is prefixed with a dash. For example, ["JS", "Python"] becomes a two-line YAML sequence with "- JS" and "- Python". Arrays of objects become sequences of YAML mappings.