From 3341f08fe90909e89f89f3a43df33db8330067b3 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Mar 2021 13:37:15 +0300 Subject: app.py: pretty print the JSON --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 8d76170..b4d2967 100755 --- a/app.py +++ b/app.py @@ -78,7 +78,7 @@ class Response: @staticmethod def dump_json(data): - return json.dumps(data, ensure_ascii=False) + return json.dumps(data, ensure_ascii=False, indent=4) def body(self): return self.dump_json(self.data) -- cgit v1.2.3