#NEWLINE# def get_db_prep_value( self , value , connection , prepared = False ) : #NEWLINE# #INDENT# 'Convert JSON object to a string' #NEWLINE# if ( self . null and ( value is None ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return json . dumps ( value , ** prepared . dump_kwargs )