Python JSON libraries

Updated Nov 2026

Python JSON libraries convert JSON text into Python objects and write Python objects back out as JSON. A parser either reads the whole document into memory at once or yields one item at a time from a stream. These libraries let APIs, data pipelines, and AI agents exchange structured data with other services.

Popularity

Jiter has the most monthly downloads in this comparison, at 433.6M, a count that includes installs as a Pydantic dependency.

LibraryMonthly downloadsStarsLast releaseLicense
Jiter
433.6M
Not on GitHubNov 2026MIT
orjson
225.6M
8.3KOct 2026MPL-2.0 AND (Apache-2.0 OR MIT)
json5
51.5M
Not on GitHubOct 2026Apache-2.0
simplejson
50.9M
Not on GitHubNov 2026MIT OR AFL-2.1
ijson
48.5M
Not on GitHubOct 2026BSD-3-Clause AND ISC
msgspec
40.5M
4.2KSep 2026BSD-3-Clause
UltraJSON
30.4M
Not on GitHubNov 2026BSD-3-Clause AND TCL
jsonpickle
16.6M
Not on GitHubOct 2026BSD-3-Clause
Downloads: pypi, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Features compared

LibraryNative JSON encodingLazy item parsingTyped schema decoding
JiterUnsupportedUnsupportedUnsupported
orjsonBuilt-inUnsupportedUnsupported
json5Built-inUnsupportedUnsupported
simplejsonBuilt-inUnsupportedUnsupported
ijsonUnsupportedBuilt-inUnsupported
msgspecBuilt-inUnsupportedBuilt-in
UltraJSONBuilt-inUnsupportedUnsupported
jsonpickleBuilt-inUnsupportedUnsupported
Built-inNot supported

Libraries and code examples

Parses JSON iteratively.

Downloads / mo
433.6M
Last release
0.19.0
License
MIT

Quickstart

From README.md
$ python -m pip install jiter==0.19.0
import jiter

data = jiter.from_json(b'{"name":"John","age":30}')

Jiter examples

From open-source projects on GitHub

Provides a JSON serialization library for Python.

Downloads / mo
225.6M
Stars
8.3K
Last release
3.13.0
License
MPL-2.0 AND (Apache-2.0 OR MIT)

Strengths

  • Serializes native scientific data. Enable the NumPy option to serialize supported array values.
  • Handles structured Python values. Serialize dataclasses, datetimes, NumPy arrays, and UUID values.

Limitations

  • Integers have fixed bounds. Default integer serialization uses the documented native integer range.
  • File I/O needs application code. Read or write files separately from the JSON codec.

Quickstart

From README.md
$ python -m pip install orjson==3.13.0
import orjson

data = orjson.loads(b'{"name":"Ada"}')

orjson examples

From open-source projects on GitHub

Reads and writes the JSON5 data format.

Downloads / mo
51.5M
Last release
0.17.3
License
Apache-2.0

Quickstart

From README.md
$ python -m pip install json5==0.17.3
import json5

data = json5.loads("{name: 'Ada',}")

json5 examples

From open-source projects on GitHub

Encodes and decodes JSON with an extensible API.

Downloads / mo
50.9M
Last release
4.3.0
License
MIT OR AFL-2.1

Quickstart

From index.html
$ python -m pip install simplejson==4.3.0
import simplejson

encoded = simplejson.dumps({"ready": True})

simplejson examples

From open-source projects on GitHub

Parses JSON through standard Python iterators.

Downloads / mo
48.5M
Last release
3.6.0
License
BSD-3-Clause AND ISC

Quickstart

From README.rst
$ python -m pip install ijson==3.6.0
from io import BytesIO
import ijson

source = BytesIO(b'[{"name":"Ada"}]')
item = next(ijson.items(source, "item"))

ijson examples

From open-source projects on GitHub

Provides serialization and data validation with JSON support.

Downloads / mo
40.5M
Stars
4.2K
Last release
0.22.0
License
BSD-3-Clause

Strengths

  • Validates typed decoded data. Pass a schema type when decoding a message.
  • Adapts custom application types. Use encoding and decoding hooks for types outside native support.

Limitations

  • Construction does not validate types. Use a typed decoder when input field types must be checked.

Quickstart

From README.md
$ python -m pip install msgspec==0.22.0
import msgspec

class User(msgspec.Struct):
    name: str

user = msgspec.json.decode(b'{"name":"Ada"}', type=User)

msgspec examples

From open-source projects on GitHub

Encodes and decodes JSON.

Downloads / mo
30.4M
Last release
6.1.0
License
BSD-3-Clause AND TCL

Quickstart

From README.md
$ python -m pip install ujson==6.1.0
import ujson

encoded = ujson.dumps([{"key": "value"}, 81, True])

UltraJSON examples

From open-source projects on GitHub

Encodes and decodes any Python object to and from JSON.

Downloads / mo
16.6M
Last release
4.1.4
License
BSD-3-Clause

Quickstart

From README.rst
$ python -m pip install jsonpickle==4.1.4
from dataclasses import dataclass
import jsonpickle

@dataclass
class Example:
    data: str

encoded = jsonpickle.encode(Example("value1"))

jsonpickle examples

From open-source projects on GitHub

FAQ

orjson suits applications that encode dataclasses, datetimes, and NumPy arrays to JSON bytes. msgspec suits code that decodes JSON into declared types with validation. ijson suits large files and streams that should be read one item at a time.

orjson is a JSON library with native support for dataclasses, datetimes, and NumPy arrays. Its encoder returns bytes rather than a string.

Jiter is a JSON parser that turns bytes into Python objects, with modes for partial input. It parses only and has no JSON encoder.

ijson parses a JSON stream incrementally and yields events or items through standard Python iterators. The calling code decides how many of those items stay in memory.

UltraJSON is a JSON encoder and decoder in maintenance-only mode. Its maintainers continue new Python support and critical fixes and encourage users to migrate to other libraries.

For coding agents

Found your JSON library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official