npm
npmjs.com › package › json-diff
json-diff - npm
May 15, 2023 - json-diff.js --full --raw-json <(echo '{"a":4}') <(echo '{"a":5}') { "a": { "__old": 4, "__new": 5 } } Unequal arrays and objects are replaced by their diff:
» npm install json-diff
Published May 15, 2023
Version 1.0.6
Author Andrey Tarantsov
Repository https://github.com/andreyvit/json-diff
npm
npmjs.com › package › json-diff-kit
json-diff-kit - npm
November 23, 2025 - A better JSON differ & viewer.. Latest version: 1.0.35, last published: 9 days ago. Start using json-diff-kit in your project by running `npm i json-diff-kit`. There are 7 other projects in the npm registry using json-diff-kit.
» npm install json-diff-kit
Published Mar 03, 2026
Version 1.0.35
Author Rex Zeng
Repository https://github.com/RexSkz/json-diff-kit
npm
npmjs.com › package › diff-json
diff-json - npm
May 13, 2019 - Generates diffs of javascript objects.. Latest version: 2.0.0, last published: 7 years ago. Start using diff-json in your project by running `npm i diff-json`. There are 17 other projects in the npm registry using diff-json.
» npm install diff-json
Published May 13, 2019
Version 2.0.0
Author viruschidai@gmail.com
Repository https://github.com/viruschidai/diff-json
The fastest object diff library in JavaScript
Seems that this particular library is aware of these potential issues (which motivated me to write this comment): https://github.com/AsyncBanana/microdiff/issues/2 · It's a good point about edge cases in diffing. Dynamic value diffing in dynamically-typed languages is an interesting problem ... More on news.ycombinator.com
Is there a library that allows to easily do diffchecks between two json?
I mean, you could stringify them both and check if they are equal or not… would be a quick and dirty way. More on reddit.com
npm
npmjs.com › package › json-diff-ts
json-diff-ts - npm
1 month ago - Calculate and apply differences between JSON objects with advanced features like key-based array diffing, JSONPath support, and atomic changesets.. Latest version: 4.10.0, last published: 3 days ago.
» npm install json-diff-ts
Published Mar 06, 2026
Version 4.10.0
Author Christian Glessner
Repository https://github.com/ltwlf/json-diff-ts
GitHub
github.com › benjamine › jsondiffpatch
GitHub - benjamine/jsondiffpatch: Diff & patch JavaScript objects · GitHub
(optionally) text diffing of long strings powered by google-diff-match-patch (diff at character level) reverse a delta, unpatch (eg. revert object to its original state using a delta) ... // sample data const country = { name: 'Argentina', capital: 'Buenos Aires', independence: new Date(1816, 6, 9), }; // clone country, using dateReviver for Date objects const country2 = JSON.parse(JSON.stringify(country), jsondiffpatch.dateReviver); // make some changes country2.name = 'Republica Argentina'; country2.population = 41324992; delete country2.capital; const delta = jsondiffpatch.diff(country, cou
Starred by 5.3K users
Forked by 496 users
Languages TypeScript 94.7% | CSS 2.9% | JavaScript 2.4%
Reddit
reddit.com › r/npm › json-diff-viewer-component - compare json side-by-side, visually
r/npm on Reddit: json-diff-viewer-component - Compare JSON side-by-side, visually
January 23, 2026 -
json-diff-viewer-component
Compare JSON side-by-side, visually
A zero-dependency web component for visualizing JSON differences with synchronized scrolling, collapsible nodes, and syntax highlighting
Features
Deep nested JSON comparison
Side-by-side synchronized scrolling
Collapsible nodes (synced between panels)
Diff indicators bubble up to parent nodes
Stats summary (added/removed/modified)
Show only changed filter toggle
Syntax highlighting
Zero dependencies
Shadow DOM encapsulation
source: github.com/metaory/json-diff-viewer-component
live demo: metaory.github.io/json-diff-viewer-component
jsDelivr
jsdelivr.com › package › npm › json-diff-rfc6902
json-diff-rfc6902 CDN by jsDelivr - A CDN for npm and GitHub
May 10, 2016 - A free, fast, and reliable CDN for json-diff-rfc6902. This framework is to compare two JSON data and generate the Patch
Published Mar 15, 2016
Repository https://github.com/caohanyang/JSON-Diff
npm
npmjs.com › search
keywords:json compare - npm search
Library to compare two (JSON-serializable) structures and return their differences.
npm
npmjs.com › package › diff
diff - npm
January 12, 2026 - Operates similarly to the replacer parameter to JSON.stringify(), but must be a function. undefinedReplacement: A value to replace undefined with. Ignored if a stringifyReplacer is provided. diffArrays(oldArr, newArr[, options]) - diffs two arrays of tokens, comparing each item for strict equality (===).
» npm install diff
GitHub
github.com › lukascivil › json-difference
GitHub - lukascivil/json-difference: A simple way to find the difference between two objects or json diff · GitHub
No matter how big your JSON is, the diff will be returned pretty fast. The question you should ask is: Given my old structure what was changed, removed or added to the new structure? This repository contains two npm packages, json-difference and its cli version (json-difference-cli).
Starred by 57 users
Forked by 5 users
Languages TypeScript 91.8% | JavaScript 7.3% | HTML 0.9%
npm
npmjs.com › package › json-difference
json-difference - npm
February 4, 2024 - json difference lib. Latest version: 1.16.1, last published: 2 years ago. Start using json-difference in your project by running `npm i json-difference`. There are 13 other projects in the npm registry using json-difference.
» npm install json-difference
Published Feb 04, 2024
Version 1.16.1
Author lukascivil
NPM Compare
npm-compare.com › deep-diff,json-diff,jsondiffpatch
deep-diff vs jsondiffpatch vs json-diff - NPM Compare
Choose deep-diff if you need a library that provides a comprehensive and detailed comparison of nested objects, including the ability to track added, deleted, and modified properties. It is particularly useful for deep comparisons and offers a clear output format for the differences found. ... Choose jsondiffpatch if you need advanced features such as the ability to apply patches to JSON objects, revert changes, or visualize differences.
npm Trends
npmtrends.com › deep-diff-vs-json-diff-vs-react-json-view-compare
deep-diff vs json-diff vs react-json-view-compare | npm trends
Comparing trends for deep-diff 1.0.2 which has 2,203,535 weekly downloads and unknown number of GitHub stars vs. json-diff 1.0.6 which has 793,463 weekly downloads and 1,199 GitHub stars vs. react-json-view-compare 2.0.2 which has 17,854 weekly downloads and 45 GitHub stars.
CodeSandbox
codesandbox.io › examples › package › json-diff-ts
json-diff-ts examples - CodeSandbox
Calculate and apply differences between JSON objects with advanced features like key-based array diffing, JSONPath support, and atomic changesets.301,585Weekly Downloads
npm
npmjs.com › jsondiffpatch
jsondiffpatch
March 31, 2025 - JSON diff & patch (object and array diff, text diff, multiple output formats). Latest version: 0.7.3, last published: a year ago. Start using jsondiffpatch in your project by running `npm i jsondiffpatch`. There are 587 other projects in the npm registry using jsondiffpatch.
» npm install jsondiffpatch
Published Mar 31, 2025
Version 0.7.3
Author Benjamin Eidelman
Repository https://github.com/benjamine/jsondiffpatch
Hacker News
news.ycombinator.com › item
The fastest object diff library in JavaScript | Hacker News
November 7, 2021 - Seems that this particular library is aware of these potential issues (which motivated me to write this comment): https://github.com/AsyncBanana/microdiff/issues/2 · It's a good point about edge cases in diffing. Dynamic value diffing in dynamically-typed languages is an interesting problem ...