mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/middleware: pretty-print JSON
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user