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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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