I think that JSON is a bad choice here. It is obvious that CLI commands should produce machine-readable output because they are often used in scripts, and accept machine-readable input as well. Using arbitrary text output was a mistake because it is difficult to parse, especially when spaces and non-ASCII characters are present. A good choice would be a format that is easily parsed by programs but still readable by t…
Just pipe it into a JSON-to-YAML script like this:
#! /usr/bin/python3
from ruamel import yaml
import json, sys, io
print(yaml.dump(json.load(sys.stdin)))