orjson
Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy
Install
orjson on PyPI
pip
pip install orjsonuv
uv add orjsonpoetry
poetry add orjsonPackage facts
| License | MPL-2.0 AND (Apache-2.0 OR MIT) (copyleft) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 99 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: orjson-3.11.9-cp310-cp310-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl; orjson-3.11.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; orjson-3.11.9-cp310-cp310-musllinux_1_2_aarch64.whl; orjson-3.11.9-cp310-cp310-musllinux_1_2_armv7l.whl; orjson-3.11.9-cp310-cp310-musllinux_1_2_i686.whl; orjson-3.11.9-cp310-cp310-musllinux_1_2_x86_64.whl; orjson-3.11.9-cp310-cp310-win32.whl; orjson-3.11.9-cp310-cp310-win_amd64.whl; orjson-3.11.9-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl; orjson-3.11.9-cp311-cp311-macosx_15_0_arm64.whl; orjson-3.11.9-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; orjson-3.11.9-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; orjson-3.11.9-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl; orjson-3.11.9-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; orjson-3.11.9-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
About orjson
from the package's own PyPI description — quoted content, verbatim
orjson
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.
orjson.dumps() is
something like 10x as fast as json, serializes
common types and subtypes, has a default parameter for the caller to specify
how to serialize arbitrary types, and has a number of flags controlling output.
orjson.loads()
is something like 2x as fast as json, and is strictly compliant with UTF-8 and
RFC 8259 ("The JavaScript Object Notation (JSON) Data Interchange Format").
Reading from and writing to files, line-delimited JSON files, and so on is not provided by the...
Similar packages
permissive · top 1,000 on PyPI
nexus-rpcpermissive · top 1,000 on PyPI
aenumpermissive · top 1,000 on PyPI
simplejsonpermissive · top 1,000 on PyPI
deepdiffpermissive · top 1,000 on PyPI
dataclasses-jsonpermissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlpermissive · top 1,000 on PyPI
fastuuidpermissive · top 1,000 on PyPI
pendulumpermissive · top 1,000 on PyPI
pytzpermissive · top 100 on PyPI