def _toJSON(self, msg_instance):
        return json.dumps(msg_instance._asdict(), cls=DjangoJSONEncoder)
Dump a Message instance into a JSON string
dataset/ETHPy150Open evonove/django-stored-messages/stored_messages/backends/redis/backend.py/RedisBackend._toJSON