Overview of orjson
masterorjson is a high-performance, correct JSON library for Python. It is designed to be significantly faster than the standard json library, with orjson.dumps() performing approximately 10x faster and orjson.loads() performing approximately 2x faster.
Key features include:
- Native serialization of
dataclass,datetime,numpy, andUUIDinstances. - Strict compliance with UTF-8 and RFC 8259.
- Support for CPython 3.10 through 3.15.
- Support for various architectures including x86_64 (with AVX-512 optimization), ARM64, and more.
Note: orjson does not provide built-in utilities for reading from or writing to files; it operates on bytes/strings.