#NEWLINE# def serialize_params( self , params , complex ) : #NEWLINE# #INDENT# if complex : #NEWLINE# #INDENT# nparams = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( key , val ) in list ( params . items ( ) ) : #NEWLINE# #INDENT# url_param = self . get_url_param ( key ) #NEWLINE# if ( ( len ( val ) == 1 ) and isinstance ( val [ 0 ] , str ) ) : #NEWLINE# #INDENT# val = val [ 0 ] #NEWLINE# #UNINDENT# nparams [ url_param ] = val #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'params' : json . dumps ( nparams ) , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return super ( AcisIO , self ) . serialize_params ( params )