In most scenario "-f json" output format is used for machine readable, the program or shell consume the result, not read it directly in console for human, the use case like:
python
subprocess.Popen("openstack server list -f json")
Note: See openstackclient functional tests, it's a good reference for "-f json"
or
bash
#openstack server list -f json > output.json
In most scenario "-f json" output format is used for machine readable, the program or shell consume the result, not read it directly in console for human, the use case like:
python Popen(" openstack server list -f json")
subprocess.
Note: See openstackclient functional tests, it's a good reference for "-f json"
or
bash
#openstack server list -f json > output.json