celery / kombu

Messaging library for Python.
http://kombu.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
2.81k stars 920 forks source link

`orjson` as JSON serializer #2027

Open Zerotask opened 2 weeks ago

Zerotask commented 2 weeks ago

orjson is a fast, correct JSON library for Python. It benchmarks as the fastest Python library for JSON and is more correct than the standard json library or other third-party libraries. It serializes dataclass, datetime, numpy, and UUID instances natively. (https://github.com/ijl/orjson)

Is it possible to either replace the current JSON serializer with orjson or add it as an alternative JSON serializer? It seems that in most cases it's ways faster and more correct than the native json module.