python_client: print as JSON

This commit is contained in:
Leopold Schabel 2022-08-12 19:54:07 +02:00
parent 61c0cf57f2
commit 7a1b607c07
1 changed files with 2 additions and 3 deletions

View File

@ -57,8 +57,7 @@ class RadianceClient():
if __name__ == '__main__':
import pprint
import json
c = RadianceClient(RADIANCE_HOST, RADIANCE_USER, RADIANCE_PASSWORD)
r = c.get_leader_stats()
pprint.pprint(r)
print(json.dumps(r, indent=2))