jsonpatch
Apply JSON-Patches (RFC 6902)
Install
jsonpatch on PyPI
pip
pip install jsonpatchuv
uv add jsonpatchpoetry
poetry add jsonpatchPackage facts
| License | Modified BSD License (permissive) |
| Python support | supports the current Python release (>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — jsonpointer |
| Maintenance | actively maintained — 1,154 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: jsonpatch-1.33-py2.py3-none-any.whl
About jsonpatch
from the package's own PyPI description — quoted content, verbatim
python-json-patch
PyPI version (image) Supported Python versions (image) Build Status (image) Coverage Status (image)
Applying JSON Patches in Python
Library to apply JSON Patches according to RFC 6902
See source code for examples
- Website: https://github.com/stefankoegl/python-json-patch
- Repository: https://github.com/stefankoegl/python-json-patch.git
- Documentation: https://python-json-patch.readthedocs.org/
- PyPI: https://pypi.python.org/pypi/jsonpatch
- Travis CI: https://travis-ci.org/stefankoegl/python-json-patch
- Coveralls: https://coveralls.io/r/stefankoegl/python-json-patch
Running external tests
To run external...
Read as markdown · JSON record · Source repository · Homepage · Docs
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
Applies JSON Patches according to RFC 6902, enabling programmatic modification of JSON documents through a standardized patch format.
Low friction installation with a single pure-Python runtime dependency (jsonpointer). Actively maintained with recent commits and stable production status since 2011.
Modified BSD License (permissive) allows commercial and private use with minimal restrictions, requiring only license and copyright notice retention.
Usage
pip install jsonpatch
import jsonpatch
patch = jsonpatch.JsonPatch([{"op": "add", "path": "/foo", "value": "bar"}])
result = patch.apply({"baz": "qux"})
Verdict: Mature, well-maintained RFC 6902 implementation with no known vulnerabilities, permissive licensing, and minimal dependencies. Suitable for production use in JSON document manipulation workflows.
Needs verification
- Whether the package actively maintains compatibility with Python 3.10+ beyond the stated 3.9 support in classifiers
- Performance characteristics for large JSON documents or complex patch sequences
Similar packages
permissive · top 1,000 on PyPI
unidiffpermissive · top 1,000 on PyPI
nest-asynciopermissive · top 1,000 on PyPI
daffpermissive · top 1,000 on PyPI
nest-asyncio2permissive · top 1,000 on PyPI
semantic-versionpermissive · top 1,000 on PyPI
asn1cryptopermissive · top 1,000 on PyPI
rfc3987-syntaxpermissive · top 1,000 on PyPI
fqdncopyleft · top 1,000 on PyPI
hyperlinkpermissive · top 1,000 on PyPI