Yes, through the ConfigParser module, which accepts a format like this:
[section]
setting=1
other=test.png
[test]
key = value
Also, keep in mind that JSON is technically a subset of YAML 1.2 (a JSON document parses as valid YAML). There are multiple ways you can format using YAML, so it’s quite flexible.