#NEWLINE# def to_python( self , value ) : #NEWLINE# #INDENT# "\n        Convert the input JSON value into python structures, raises\n        django.core.exceptions.ValidationError if the data can't be converted.\n        " #NEWLINE# if ( e . blank and ( not value ) ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if isinstance ( value , six . string_types ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return json . loads ( value ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# raise ValidationError ( str ( e ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# return value