simplejson
Simple, fast, extensible JSON encoder/decoder for Python
Install
simplejson on PyPI
pip
pip install simplejsonuv
uv add simplejsonpoetry
poetry add simplejsonPackage facts
| License | MIT OR AFL-2.1 (permissive) |
| Python support | supports the current Python release (!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=2.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 111 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: simplejson-4.1.1-py3-none-any.whl
About simplejson
from the package's own PyPI description — quoted content, verbatim
simplejson
simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 3.8+ with legacy support for Python 2.7. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost.
The latest documentation for simplejson can be read online here: https://simplejson.readthedocs.io/
simplejson is the externally maintained development version of the json library included with Python (since 2.6). This version is tested with Python 3.14 (including free-threaded builds) and maintains backwards compatibility with Python 3.8+. A legacy Python 2.7 wheel is also published.
The encoder can be specialized to provide serialization in any kind of
situation, without any special support by the objects to be serialized
(somewhat like pickle). This is best done with the default kwarg
to dumps.
The decoder can handle incoming JSON strings of any specified encoding
(UTF-8 by default). It can also be specialized to post-process JSON
objects with the object_hook or object_pairs_hook kwargs. This
is particularly useful for implementing protocols such as JSON-RPC
that have a...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
simplejson is a fast, complete JSON encoder and decoder for Python 3.8+ (with Python 2.7 legacy support) that offers specialized serialization and deserialization hooks, plus an optional C extension for performance.
Low friction: pure Python with no runtime dependencies, distributed as a wheel. Actively maintained with recent commits and 1712 repository stars; last release 111 days ago signals ongoing support.
Licensed under MIT OR AFL-2.1 (permissive); either license permits commercial and private use with minimal restrictions, making it suitable for most projects.
Usage
pip install simplejson
import simplejson
data = {"key": "value"}
json_str = simplejson.dumps(data)
parsed = simplejson.loads(json_str)
Requires Python 2.7 or Python 3.8+; C extension is optional and not required for functionality.
Verdict: simplejson is a mature, actively maintained JSON library with zero known vulnerabilities, no dependencies, and broad Python version support. Its permissive dual license and low install friction make it a reliable choice for projects needing JSON serialization with customization hooks or performance optimization via its optional C extension.
Needs verification
- Performance characteristics of the optional C extension relative to the pure Python implementation
- Compatibility details with free-threaded Python builds mentioned in classifiers
Similar packages
permissive · top 1,000 on PyPI
hpackpermissive · top 1,000 on PyPI
sentence-transformerspermissive · top 1,000 on PyPI
tomlpermissive · top 1,000 on PyPI
dataclasses-jsonpermissive · top 1,000 on PyPI
orjsoncopyleft · top 1,000 on PyPI
brotlipermissive · top 1,000 on PyPI
asn1cryptopermissive · top 1,000 on PyPI
dillpermissive · top 1,000 on PyPI
zstandardpermissive · top 1,000 on PyPI