pyjson
Compare the similarities between two JSONs.
What it is and what it does
pyjson is a lightweight utility for comparing two JSON files and identifying their structural and content differences. It is part of a small-tools collection and is designed to help developers quickly spot discrepancies between JSON documents—useful for testing, validation, or data reconciliation workflows.
The package has no runtime dependencies, making it straightforward to install. However, the project is dormant; the last commit was in March 2024 and there have been no releases since September 2023. It supports Python 3.8, 3.9, and 3.10. If you need active maintenance or ongoing feature development, this may not be the right choice.
Use it for:
- Compare expected vs. actual JSON output in API tests or integration tests.
- Validate that configuration files or data exports match a known-good reference.
- Detect unintended changes in JSON structure during refactoring or data migrations.
- Quickly identify differences between two versions of a JSON dataset for debugging.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Compares the similarity between two JSON files and reports structural and content differences.
Yes, if you need a simple, zero-dependency JSON comparison tool and can accept that the project is no longer actively maintained. The low install friction and permissive license make it a low-risk addition. However, if you require ongoing support, bug fixes, or active development, look for an actively maintained alternative.
Install
pyjson on PyPI
pip
pip install pyjsonuv
uv add pyjsonpoetry
poetry add pyjsonInstalling pyjson
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last commit was 2024-03-21 and no releases since 2023-09-21—so expect no active bug fixes or feature updates.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute freely with minimal restrictions.
Quickstart
pip install pyjson
from pyjson import compare
result = compare(json_file_1, json_file_2)
Verify before relying
- What specific similarity metrics or algorithms the package uses to compare JSON structures.
- Whether the tool handles nested JSON, arrays, and complex data types correctly.
- Output format and how differences are reported to the user.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,058 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 149,902/month — #10,979 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyjson-1.4.1-py3-none-any.whl
Keywords: pip, pyjson, logging
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
json-diffCompares two JSON files and generates a JSON…
permissive · top 15,000 on PyPI
recursive-diffRecursively compares two Python data structures…
permissive · top 15,000 on PyPI
jsoncomparisonCompares two JSON-like objects and returns a…
permissive · top 5,000 on PyPI
redlinesRedlines compares two strings or text documents…
permissive · top 15,000 on PyPI
zssComputes the edit distance between two tree…
unclear · top 15,000 on PyPI
csv-diffCompares two CSV, TSV, or JSON files and…
permissive · top 15,000 on PyPI
sqlalchemy-diffCompares database schemas across two…
permissive · top 15,000 on PyPI
DistanceComputes distance metrics (Levenshtein,…
copyleft · top 15,000 on PyPI
collate-data-diffCompares rows across two SQL databases or…
permissive · top 5,000 on PyPI
pixelmatchCompares two images pixel-by-pixel to detect…
permissive · top 5,000 on PyPI