jsonpatch
Apply JSON-Patches (RFC 6902)
Decision gist · record as of 2026-08-14
Yes. jsonpatch is a mature, well-maintained library with no security issues, low install friction, and a permissive license. It fills a specific, standardized role (RFC 6902 compliance) that is difficult to replicate without it. Install if you need to work with JSON Patches in any form—API design, data synchronization, or change tracking.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel, single lightweight dependency (jsonpointer), actively maintained with recent commits and stable production status.
License · maintenance · safety
Modified BSD License (permissive) — Modified BSD License (permissive) — you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2023-06-16 (1155 days) · last repo commit 2026-06-18 · 497 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 157,482,368 downloads/mo, #259 on PyPI
Alternatives
Verify before relying
pip install jsonpatch
import jsonpatch
patch = jsonpatch.JsonPatch([{"op": "add", "path": "/key", "value": "new"}])
result = patch.apply({"existing": "data"})- Whether the package handles deeply nested or very large JSON documents efficiently
- Performance characteristics when applying many patches sequentially to the same document
What it is and what it does
jsonpatch is a library that implements RFC 6902, the standard specification for describing changes to JSON documents as a series of operations (add, remove, replace, move, copy, test). It lets you represent JSON modifications as structured patch objects rather than raw document mutations, making it useful for APIs, version control, and collaborative editing scenarios where you need to communicate or log what changed.
The package depends only on jsonpointer for path resolution within JSON structures. It supports Python 2.7 and Python 3.7 and later, is actively maintained with a recent commit history, and has no known security vulnerabilities. The implementation is pure Python with a straightforward API: you construct a JsonPatch from a list of operation dictionaries and call apply() to modify a target document.
Use it for
- Build REST APIs that accept JSON Patch requests to update resources incrementally rather than replacing entire documents
- Implement version control or change tracking for JSON-based configuration or data files
- Generate and transmit minimal diffs between JSON documents in collaborative editing or synchronization systems
- Test JSON transformations by specifying expected patches and verifying they produce the correct output
- Serialize document mutations in audit logs or event streams for reproducible replay
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
jsonpatch is a mature, well-maintained library with no security issues, low install friction, and a permissive license. It fills a specific, standardized role (RFC 6902 compliance) that is difficult to replicate without it. Install if you need to work with JSON Patches in any form—API design, data synchronization, or change tracking.
Install
jsonpatch on PyPI
Before you install
Low friction: pure Python wheel, single lightweight dependency (jsonpointer), actively maintained with recent commits and stable production status.
License in practice
Modified BSD License (permissive) — you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install jsonpatch
import jsonpatch
patch = jsonpatch.JsonPatch([{"op": "add", "path": "/key", "value": "new"}])
result = patch.apply({"existing": "data"})
Verify before relying
- Whether the package handles deeply nested or very large JSON documents efficiently
- Performance characteristics when applying many patches sequentially to the same document
Package 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 packagejsonpointer |
| Maintenance | Actively maintained 1,155 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,482,368 / month, #259 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: LibrariesTopic :: Utilities |
Evidence: jsonpatch-1.33-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “json patch rfc 6902”
- jsonpatchApplies JSON Patches according to RFC 6902, allowing you to describe…
- jschonValidates JSON data against JSON Schema (drafts 2019-09 and 2020-12)…
- python-jsonpathImplements RFC 9535-compliant JSONPath query evaluation, plus RFC…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also json-merge-patch · python-jsonpath · jsonpointer · jschon · patch · patch-ng · dictdiffer · diff-match-patch · patchy · jsondiff