@content_type('application/json')
def pretty_json(content, **kwargs):
 return json(content, indent=4, separators=(',', ': '), **kwargs)

@ content_type ( 'application/json' ) def pretty_json ( content , ** kwargs ) : return json ( content , indent = 4 , separators = ( ',' , ': ' ) , ** kwargs )
json pretty printed and indented .