skillfed

json-diff

Generates diff between two JSON files

json-diff v1.5.0 357.2K downloads/30d#7,272 on PyPI
Permissive license Abandoned released

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-diff

uv

uv add json-diff

poetry

poetry add json-diff

Installing 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

Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: General

Tags

json file comparisonjson diff toolcompare json structuresjson difference detectorjson delta generatorjson file diffjson structural comparison
json-toolsabandoned

More Python Modules packages