def to_python(self, value):
        if self.blank and not value:
            return None
        if isinstance(value, six.string_types):
            try:
                return json.loads(value)
            except Exception as e:
                raise ValidationError(str(e))
        else:
            return value
Convert the input JSON value into python structures, raises
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/fields.py/JSONField.to_python