#NEWLINE# def jsonify( data , status = None ) : #NEWLINE# #INDENT# indent = None #NEWLINE# if ( flask . current_app . config [ 'JSONIFY_PRETTYPRINT_REGULAR' ] and ( not flask . request . is_xhr ) ) : #NEWLINE# #INDENT# indent = 2 #NEWLINE# #UNINDENT# return flask . current_app . response_class ( dumps ( data , indent = indent ) , status = status , mimetype = 'application/json' )