#NEWLINE# def _flatten_value( self , value ) : #NEWLINE# #INDENT# 'Return either a string, JSON-encoding dict()s as necessary' #NEWLINE# if ( not value ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# if isinstance ( self , dict ) : #NEWLINE# #INDENT# value = json . dumps ( value , use_decimal = True , default = json_encode_default ) #NEWLINE# #UNINDENT# assert isinstance ( value , six . string_types ) #NEWLINE# return value