json-diff
Generates diff between two JSON files
What it is and what it does
json-diff is a command-line tool and Python library that compares two JSON files and outputs the structural differences in JSON format. It supports filtering the comparison by including or excluding specific keys, making it useful for detecting changes between JSON documents. The tool can be used both as a standalone script (with exit status indicating whether differences were found) and as an importable Python module.
The package has no runtime dependencies, making installation straightforward. However, it has been abandoned since August 2019; while it was ported to Python 3 in version 1.5.0, one test was left skipped, suggesting the port may not be complete. The codebase originated with Python 2.4 compatibility as a design constraint, which may affect its behavior on modern Python versions.
Use it for:
- Detect structural changes between two JSON configuration files in a deployment pipeline.
- Compare JSON API responses across different versions to identify breaking changes.
- Generate a diff report when JSON data is updated, for audit or version-control purposes.
- Exclude specific keys (like timestamps or IDs) when comparing JSON documents for meaningful content differences.
- Automate testing by comparing expected and actual JSON output from a program.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compares two JSON files and generates a JSON output showing the differences, with options to include or exclude specific keys from the comparison.
No. The package is abandoned with no maintenance since 2019, incomplete Python 3 porting (one test skipped), and high install friction. For JSON comparison, consider actively maintained alternatives or use Python's built-in difflib with json.load() for simple cases. Install only if you have a specific legacy requirement and can accept the lack of support.
Install
json-diff on PyPI
pip
pip install json-diffuv
uv add json-diffpoetry
poetry add json-diffInstalling json-diff
Before you install
Installation friction is high due to the source distribution format. The package is abandoned as of 2019-08-25 with no maintenance activity since; the last release ported to Python 3 but left one test skipped. Use only if you need this specific tool and can tolerate lack of ongoing support.
License in practice
Released under MIT/X11 license (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install json-diff
import json_diff
result = json_diff.compare(json1, json2)
The package is abandoned; Python 3 support was added in 1.5.0 but one test remains skipped, indicating incomplete porting.
Verify before relying
- Whether the skipped test in the Python 3 port indicates a functional limitation or just incomplete test coverage.
- Current compatibility with modern Python versions beyond the initial 3.x port in 2019.
- Whether the command-line tool works reliably given the abandoned maintenance status.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,546 days since the last release |
| First released | |
| Downloads | 357,204/month — #7,272 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: json_diff-1.5.0.tar.gz
Keywords: json, diff
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyjsonCompares the similarity between two JSON files…
permissive · top 15,000 on PyPI
redlinesRedlines compares two strings or text documents…
permissive · top 15,000 on PyPI
json-deltaComputes and applies diffs/patches between JSON…
permissive · top 15,000 on PyPI
jsoncomparisonCompares two JSON-like objects and returns a…
permissive · top 5,000 on PyPI
recursive-diffRecursively compares two Python data structures…
permissive · top 15,000 on PyPI
datadiffGenerates human-readable diffs of Python data…
permissive · top 15,000 on PyPI
sqlalchemy-diffCompares database schemas across two…
permissive · top 15,000 on PyPI
dictdifferDictdiffer computes and applies diffs and…
permissive · top 5,000 on PyPI
azure-cli-diff-toolCompares and diffs Azure CLI metadata files…
permissive · top 15,000 on PyPI
xmldiffxmldiff compares two XML files or trees and…
permissive · top 15,000 on PyPI