From f01189631a95108a3dc3e1027c30f6dde84acc9c Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 3 May 2015 12:53:09 +0000 Subject: [PATCH] management api: make json responses nicely formatted Better while debugging. --- management/daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/daemon.py b/management/daemon.py index 02d9084c..e0d59da1 100755 --- a/management/daemon.py +++ b/management/daemon.py @@ -80,7 +80,7 @@ def unauthorized(error): return auth_service.make_unauthorized_response() def json_response(data): - return Response(json.dumps(data), status=200, mimetype='application/json') + return Response(json.dumps(data, indent=2, sort_keys=True)+'\n', status=200, mimetype='application/json') ###################################