json-diff is a command-line tool (and library) that computes differences between two JSON documents in a user-friendly manner. It highlights additions, deletions, and modifications in nested JSON structures, showing context so users can see where changes occurred. The output is presented in a readable diff style (text, colorized, or in various output formats) so developers can quickly understand changes between two versions of a JSON file. The tool also supports ignoring order in arrays, skipping certain paths, and configuration options so it can adapt to different JSON schemas or tolerance levels. Because JSON is ubiquitous in APIs, configs, and data interchange, json-diff is particularly handy for developers, devops, and QA to compare API responses or configuration states. It is designed to be lightweight and embeddable so it can be used both interactively and in scripts or CI pipelines.

Features

  • Generates colorized, diff-like command-line output between JSON files
  • Supports fuzzy matching for nested array elements
  • keysOnly option for comparing structure (keys only), disregarding values
  • full mode outputs the entire JSON tree, not just differences
  • outputKeys option ensures certain keys are always included when differences exist
  • Includes test coverage even if not complete

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow JSON-Diff

JSON-Diff Web Site

Other Useful Business Software
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In Icon
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In

Unlimited organizations, 3 enterprise SSO connections, role-based access control, and pro MFA included. Dev and prod tenants out of the box.

Auth0's B2B Essentials plan gives you everything you need to ship secure multi-tenant apps. Unlimited orgs, enterprise SSO, RBAC, audit log streaming, and higher auth and API limits included. Add on M2M tokens, enterprise MFA, or additional SSO connections as you scale.
Sign Up Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JSON-Diff!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

CoffeeScript

Related Categories

CoffeeScript JSON Software

Registered

2025-08-22