def to_python(self, value):
        try:
            if value is not None:
                return json.loads(value)
        except TypeError:
            raise ValidationError(_(u'String type is required.'))
        except __HOLE__:
            raise ValidationError(_(u'Enter a valid value.'))
dataset/ETHPy150Open djangonauts/djorm-ext-hstore/djorm_hstore/forms.py/JsonMixin.to_python