def get_prep_value(self, value):
        try:
            return json.dumps(value)
        except Exception as e:
            raise ValidationError(str(e))
Convert value to JSON string before save
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/fields.py/JSONField.get_prep_value