def process_formdata(self, valuelist):
        if valuelist:
            value = valuelist[0]

            # allow saving blank field as None
            if not value:
                self.data = None
                return

            try:
                self.data = json.loads(valuelist[0])
            except __HOLE__:
                raise ValueError(self.gettext('Invalid JSON'))
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/form/fields.py/JSONField.process_formdata