From 583e73dfc7e77c1a0715ef0b697fd2d3ec911dfc Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 2 Apr 2016 14:45:06 +0200 Subject: [PATCH] server/middleware: pretty-print JSON --- server/szurubooru/middleware/json_translator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/szurubooru/middleware/json_translator.py b/server/szurubooru/middleware/json_translator.py index f04e6c8..bed5172 100644 --- a/server/szurubooru/middleware/json_translator.py +++ b/server/szurubooru/middleware/json_translator.py @@ -41,4 +41,5 @@ class JsonTranslator(object): ''' Executed before passing the response to falcon. ''' if 'result' not in request.context: return - response.body = json.dumps(request.context.result, default=json_serial) + response.body = json.dumps( + request.context.result, default=json_serial, indent=2)