#NEWLINE# def value_from_object( self , obj ) : #NEWLINE# #INDENT# value = super ( JSONField , self ) . value_from_object ( obj ) #NEWLINE# if ( self . null and ( value is None ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return json . dumps ( value , sort_keys = True , indent = 2 , separators = ( ',' , ': ' ) )