json-delta
A diff/patch pair for JSON-serialized data structures.
What it is and what it does
json-delta is a Python library for computing and applying deltas (diffs) between JSON data structures. It reduces communication overhead by transmitting only the changes between two versions of a JSON object rather than the entire updated structure. The package provides both a Python API and command-line tools (json_diff, json_patch, json_cat) for working with JSON deltas.
The library was designed for scenarios where two programs—such as a client and server communicating over HTTP, or two processes using IPC—need to synchronize shared data structures while minimizing bandwidth. It has zero runtime dependencies and installs as a pure-Python wheel, making deployment straightforward. However, the package has been abandoned since 2020-10-18 with no maintenance activity, meaning it receives no bug fixes, security updates, or compatibility improvements for newer Python versions.
Use it for:
- Reduce bandwidth in client-server JSON synchronization by transmitting only deltas instead of full payloads.
- Minimize data transfer in bidirectional IPC between processes that share evolving JSON data structures.
- Compress JSON change logs or audit trails by storing deltas rather than complete snapshots.
- Implement efficient real-time collaboration features where multiple clients modify shared JSON documents.
- Generate human-readable diffs of JSON configuration or data files for version control or debugging.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Computes and applies diffs/patches between JSON data structures to minimize communication overhead when synchronizing data across processes or network channels.
Yes, if you need JSON diff/patch functionality and can tolerate an unmaintained package. The zero-dependency installation and permissive BSD license make it low-risk to adopt, but verify compatibility with your Python version and test thoroughly before production use. Consider alternatives if you require active maintenance or support for modern Python versions.
Install
json-delta on PyPI
pip
pip install json-deltauv
uv add json-deltapoetry
poetry add json-deltaInstalling json-delta
Before you install
Installation is frictionless—a pure-Python wheel with no runtime dependencies—but the package is abandoned as of 2020-10-18 with no maintenance activity since then. Use only if you accept the risk of unpatched bugs and no forward compatibility.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects that can tolerate an unmaintained codebase.
Quickstart
pip install json-delta
import json_delta
old = {"a": 1, "b": 2}
new = {"a": 1, "b": 3, "c": 4}
delta = json_delta.diff(old, new)
result = json_delta.patch(old, delta)
Verify before relying
- Whether the package works correctly on modern Python versions beyond 3.4.
- Whether the command-line tools (json_diff, json_patch, json_cat) are still functional.
- Performance characteristics and delta compression efficiency compared to alternatives.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,126 days since the last release |
| First released | |
| Downloads | 599,318/month — #5,830 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: json_delta-2.0.2-py2.py3-none-any.whl
Keywords: JSON, delta, diff, patch, compression
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
jsondiffComputes structured diffs between JSON and…
permissive · top 5,000 on PyPI
json-diffCompares two JSON files and generates a JSON…
permissive · top 15,000 on PyPI
datadiffGenerates human-readable diffs of Python data…
permissive · top 15,000 on PyPI
dictdifferDictdiffer computes and applies diffs and…
permissive · top 5,000 on PyPI
bsdiff4bsdiff4 creates and applies binary patches in…
permissive · top 15,000 on PyPI
deepdiffDeepDiff compares dictionaries, iterables,…
permissive · top 1,000 on PyPI
daffCompares two tables and produces a diff summary…
permissive · top 1,000 on PyPI
diff-match-patchProvides diff, match, and patch algorithms for…
permissive · top 5,000 on PyPI
patchParses and applies unified diff patches to…
permissive · top 15,000 on PyPI
patch-ngParses and applies unified diff patches to…
permissive · top 5,000 on PyPI