YAML format is useful for automation. It is easier on eyes than JSON.
YAML output format looks like this:
Notice the readability is better than in JSON. YAML is easily readable for both humans and machines.
YAML output format has similar use-cases like JSON. JSON has better support in many languages, but YAML is also popular.