def clean(self, value):

        if not value and not self.required:
            return None

        # Trap cleaning errors & bubble them up as JSON errors
        try:
            return super(JSONFormFieldBase, self).clean(value)
        except __HOLE__:
            raise ValidationError(_("Enter valid JSON"))
dataset/ETHPy150Open bradjasper/django-jsonfield/jsonfield/fields.py/JSONFormFieldBase.clean