#NEWLINE# def use_json( self , request ) : #NEWLINE# #INDENT# if ( ( request . method . upper ( ) not in http . URLENCODE_METHODS ) and request . params ) : #NEWLINE# #INDENT# request . headers [ 'Content-Type' ] = 'application/json' #NEWLINE# request . params = json . dumps ( request . params )