# orjson

> Fast, correct JSON library for Python

Source: https://talira.ai/catalog/orjson-cynesj9a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / serialization](https://talira.ai/categories/libraries/serialization), [languages / python](https://talira.ai/categories/languages/python)
- Licence: MPL-2.0 AND (Apache-2.0 OR MIT)[^1][^2][^3][^4]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Supports: [SemVer](https://talira.ai/standards/semver.md)[^1]
- Backed by: [ijl](https://talira.ai/orgs/ijl.md)

orjson is a JSON library for Python, written in Rust, that its README benchmarks as the fastest for Python and calls more correct than the standard json module. It serialises dataclasses, datetimes, numpy arrays and UUIDs natively; dumps() is about 10 times as fast as json and takes a default function and flags for output, and loads() is about twice as fast and strictly follows UTF-8 and RFC 8259. It supports CPython 3.10 to 3.15 with prebuilt wheels for Linux, macOS and Windows, and follows semantic versioning. Install it from PyPI as orjson.

## Links

- GitHub: https://github.com/ijl/orjson

## Problems it solves

- my Python API spends too long encoding JSON responses
- serialise dataclasses and datetimes to JSON in Python without writing a custom encoder
- dump numpy arrays to JSON quickly

## Features

- native serialisation of dataclasses, datetimes, numpy arrays and UUIDs
- dumps() about 10x as fast as json
- loads() about 2x as fast as json, strict UTF-8 and RFC 8259
- default parameter and output flags
- wheels for Linux, macOS and Windows on x86-64 and ARM

## Limitations

- Doesn't read or write files or line-delimited JSON itself.[^1]
- Doesn't support PyPy, embedded Python builds for Android or iOS, or PEP 554 subinterpreters.[^1]

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.47, adoption 0.78, momentum 0.59, community 0.56, backing 0.30, extensibility 0.00.

- last commit 53 days ago
- 3 commits in the last 90 days
- latest release 3.13.0 53 days ago
- 8.3k GitHub stars
- 24 contributors
- backed by ijl

## Alternatives

- [UltraJSON (ujson)](https://talira.ai/catalog/ultrajson-ujson-sftym0p3.md): Fast JSON encoder and decoder for Python, written in C

## Sources

[^1]: https://github.com/ijl/orjson/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/ijl/orjson/blob/master/LICENSE-MPL-2.0 (checked 29 Nov 2026)
[^3]: https://github.com/ijl/orjson/blob/master/LICENSE-APACHE (checked 29 Nov 2026)
[^4]: https://github.com/ijl/orjson/blob/master/LICENSE-MIT (checked 29 Nov 2026)
