The hyphen is associated with the a though. In what's posted, a is a list, not a map - the type of the parent is being declared by that hyphen.
That's kind of my point. Indentation is optional, so many don't indent, making the resulting document harder to understand.
That is a preferred syntax for many that are used to YAML though.