diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/objects/scopes.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py index 4b8fa95..3517e43 100644 --- a/cli/objects/scopes.py +++ b/cli/objects/scopes.py @@ -5,9 +5,12 @@ # Free Software Foundation; either version 3 of the License, or # (at your option) any later version. +import json + class OgScope(): @staticmethod def list_scopes(rest): r = rest.get('/scopes') - print(r.text) + payload = json.loads(r.text) + print(json.dumps(payload, sort_keys=True, indent=2)) |