In more detail
YAML can express everything JSON can (JSON is nearly a subset) and also allows comments, which makes it popular for CI pipelines, Kubernetes and static-site settings. Indentation must use spaces, never tabs, and a wrong indent changes the meaning silently.