I mean, you could stringify them both and check if they are equal or not… would be a quick and dirty way. Answer from Thalimet on reddit.com
GitHub
github.com › relex › json-diff-react
GitHub - relex/json-diff-react: A React.js component that renders a structural diff of two JSON values · GitHub
A React.js component that renders a structural diff of two JSON values. Written in TypeScript except for the JavaScript code inherited from the original json-diff library.
Author relex
Reddit
reddit.com › r/reactjs › is there a library that allows to easily do diffchecks between two json?
r/reactjs on Reddit: Is there a library that allows to easily do diffchecks between two json?
October 13, 2022 -
I am wondering if there's something that allows you to easily display differences between two json like on diffchecker.com. Is there a library that allows you to easily do that?
GitHub
github.com › utkuakyuz › virtual-react-json-diff
GitHub - utkuakyuz/virtual-react-json-diff: A lightweight diff viewer for JSON files in React applications
Starred by 14 users
Forked by 2 users
Languages TypeScript 85.1% | CSS 12.5% | JavaScript 2.4%
npm
npmjs.com › package › react-json-view-compare
react-json-view-compare - npm
import ReactJsonViewCompare from 'react-json-view-compare'; const oldData = { name: 'super', age: 18, task: [ { name: 'eat', time: '09:00' }, { name: 'work', time: '10:00' }, { name: 'sleep', time: '22:00' } ] }; const newData = { name: 'coolapt', age: 20, task: [ { name: 'eat', time: '09:00' }, { name: 'work', time: '10:00' }, { name: 'sleep', time: '23:00' }, { name: 'running', time: '08:00' } ] }; function App() { return <ReactJsonViewCompare oldData={oldData} newData={newData} />; } ReactDOM.render(<App />, document.getElementById('root'));
» npm install react-json-view-compare
Published Mar 30, 2023
Version 2.0.2
Author coolapt
CodeSandbox
codesandbox.io › examples › package › react-json-view-compare
react-json-view-compare examples - CodeSandbox
json-diff-visualize (forked) briangyetko · gallant-banzai-du93q · haytem.haiderFind more examples or templates · AboutReact json compare view plugin, supports expansion and hiding.use react hooks.18,574Weekly Downloads · Latest version2.0.2 · LicenseMIT ·
npm
npmjs.com › package › json-diff-kit
json-diff-kit - npm
import { Differ } from 'json-diff-kit'; // or if you are using vue, you can import the differ only import Differ from 'json-diff-kit/dist/differ'; // the two JS objects const before = { a: 1, b: 2, d: [1, 5, 4], e: ['1', 2, { f: 3, g: null, h: [5], i: [] }, 9], m: [], q: 'JSON diff can\'t be possible', r: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', s: 1024, }; const after = { b: 2, c: 3, d: [1, 3, 4, 6], e: ['1', 2, 3, { f: 4, g: false, i: [7, 8] }, 10], j: { k: 11, l: 12 }, m: [ { n: 1, o: 2 }, { p: 3 }, ], q:
» npm install json-diff-kit
Published Mar 03, 2026
Version 1.0.35
Author Rex Zeng
Repository https://github.com/RexSkz/json-diff-kit
GitHub
github.com › 5SSS › react-json-view-compare
GitHub - 5SSS/react-json-view-compare: compare json data,json viewer(demo:https://codesandbox.io/s/jovial-meadow-v17pw)
import ReactJsonViewCompare from 'react-json-view-compare'; const oldData = { name: 'super', age: 18, task: [ { name: 'eat', time: '09:00' }, { name: 'work', time: '10:00' }, { name: 'sleep', time: '22:00' } ] }; const newData = { name: 'coolapt', age: 20, task: [ { name: 'eat', time: '09:00' }, { name: 'work', time: '10:00' }, { name: 'sleep', time: '23:00' }, { name: 'running', time: '08:00' } ] }; function App() { return <ReactJsonViewCompare oldData={oldData} newData={newData} />; } ReactDOM.render(<App />, document.getElementById('root'));
Starred by 45 users
Forked by 15 users
Languages JavaScript 81.5% | CSS 16.8% | HTML 1.7%
npm
npmjs.com › package › json-diff-react
json-diff-react - npm
A React.js component that renders a structural diff of two JSON values. Written in TypeScript except for the JavaScript code inherited from the original json-diff library.
» npm install json-diff-react
Published Mar 20, 2023
Version 1.0.1
Author Joonas Laukka
Repository https://github.com/relex/json-diff-react
GitHub
github.com › bluepeter › jsondiffpatch-react
GitHub - bluepeter/jsondiffpatch-react: Diff & patch JavaScript objects... in React
<JsonDiffReact left={left} right={right} objectHash={(obj: any) => obj.id || obj._id || obj.name || JSON.stringify(obj) } />
Starred by 12 users
Forked by 4 users
Languages JavaScript
Netlify
virtual-react-json-diff.netlify.app
Virtual React JSON Diff Demo
We cannot provide a description for this page right now
GitHub
github.com › RexSkz › json-diff-kit
GitHub - RexSkz/json-diff-kit: A better JSON differ & viewer, support LCS diff for arrays and recognise some changes as "modification" apart from simple "remove"+"add". · GitHub
import { Differ } from 'json-diff-kit'; // or if you are using vue, you can import the differ only import Differ from 'json-diff-kit/dist/differ'; // the two JS objects const before = { a: 1, b: 2, d: [1, 5, 4], e: ['1', 2, { f: 3, g: null, h: [5], i: [] }, 9], m: [], q: 'JSON diff can\'t be possible', r: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', s: 1024, }; const after = { b: 2, c: 3, d: [1, 3, 4, 6], e: ['1', 2, 3, { f: 4, g: false, i: [7, 8] }, 10], j: { k: 11, l: 12 }, m: [ { n: 1, o: 2 }, { p: 3 }, ], q:
Author RexSkz
npm Trends
npmtrends.com › jsdiff-vs-json-diff-vs-react-diff-vs-react-diff-view-vs-react-diff-viewer
jsdiff vs json-diff vs react-diff vs react-diff-view vs react-diff-viewer | npm trends
Comparing trends for jsdiff 1.1.1 which has 9,956 weekly downloads and 7 GitHub stars vs. json-diff 1.0.6 which has 793,463 weekly downloads and 1,199 GitHub stars vs. react-diff 0.0.7 which has 163 weekly downloads and 124 GitHub stars vs. react-diff-view 3.3.2 which has 135,735 weekly downloads ...
Top answer 1 of 2
8
Try either "react-diff-view" or "react-diff-viewer".
The "react-diff-viewer" is quite simple to use/implement while the "react-diff-view" offers some more advanced features.
It's up to you, here the links: https://www.npmjs.com/package/react-diff-viewer https://www.npmjs.com/package/react-diff-view
2 of 2
7
react-diff-viewer-continued might be what you are looking for since 'react-diff-view' is no longer having updates and is not compactable for react 18^.
npm
npmjs.com › package › jsondiffpatch-react
jsondiffpatch-react - npm
<JsonDiffReact left={left} right={right} objectHash={(obj: any) => obj.id || obj._id || obj.name || JSON.stringify(obj) } />
» npm install jsondiffpatch-react
Published Jul 10, 2023
Version 1.0.8
Author bluepeter
GitHub
github.com › shripatil70 › json-diff-viewer
GitHub - shripatil70/json-diff-viewer: 🧩 JSON Diff Viewer — A lightweight React + TypeScript tool to visually compare two JSON files side-by-side with color-coded differences, live updates, dark/light mode, and zero UI libraries.
This project is a powerful and user-friendly JSON Diff Viewer built with React, TypeScript, and Vite. It allows users to easily compare two JSON objects side-by-side and view the differences in a clean, syntax-highlighted, color-coded format.
Author shripatil70
GitHub
github.com › matteotrapani › virtual-react-json-diff-react19
GitHub - matteotrapani/virtual-react-json-diff-react19: A lightweight diff viewer for JSON files in React applications
A lightweight diff viewer for JSON files in React applications - matteotrapani/virtual-react-json-diff-react19
Author matteotrapani