def to_python(self, value):
        if value is None:
            return None
        if isinstance(value, dict):
            return value
        try:
            return json.loads(value)
        except __HOLE__, e:
            raise ValidationError(e)
dataset/ETHPy150Open bendavis78/python-gitmodel/gitmodel/fields.py/JSONField.to_python