You can turn any piece of a YAML into a JSON object and it will be read just as well.
This YAML:
user:
name: Ted
is equivalent to this YAML: user: {"name": "Ted"}
which is equivalent to this YAML/JSON: {"user": {"name": "Ted"}}