Having that in mind we can use JSON inside of YAML and technically it would work as a correct YAML file.

# example.yml
{ "key": "value" }

Would work the same as:

# example.yml
---
key: value

More details: YAML specification