def value_to_string(self, obj):
        return smart_text(self.get_prep_value(self._get_val_from_obj(obj)))
Return value from object converted to string properly
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/fields.py/JSONField.value_to_string