management api: make json responses nicely formatted

Better while debugging.
This commit is contained in:
Joshua Tauberer
2015-05-03 13:43:38 +00:00
parent 542877ee46
commit f01189631a
+1 -1
View File
@@ -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')
###################################