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
🌐
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 ·
🌐
GitHub
github.com › utkuakyuz › virtual-react-json-diff
GitHub - utkuakyuz/virtual-react-json-diff: A lightweight diff viewer for JSON files in React applications
A lightweight diff viewer for JSON files in React applications - utkuakyuz/virtual-react-json-diff
Starred by 14 users
Forked by 2 users
Languages   TypeScript 85.1% | CSS 12.5% | JavaScript 2.4%
🌐
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
🌐
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%
🌐
Socket
socket.dev › npm › package › json-diff-react
json-diff-react - npm Package Security Analysis - Socket
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.
🌐
Medium
medium.com › @letscodefuture › creating-a-json-or-code-diff-viewer-with-react-and-monaco-editor-48e2dc0ef562
Creating a JSON or Code Diff Viewer with React and Monaco Editor | by Let's Code Future | Medium
December 6, 2024 - In this blog post, we’ll guide you through creating a JSON or code diff viewer using React and the powerful Monaco Editor library. Let’s get started!
Find elsewhere
🌐
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
🌐
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
🌐
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 ...
🌐
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
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.
🧩 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. - shripatil70/json-diff-viewer
Author   shripatil70
🌐
GitHub
github.com › johnwdunn20 › react-jsondiff
GitHub - johnwdunn20/react-jsondiff: Display json diffs in react. Based on jsondiffpatch
Now as it's own module, this component can easily be installed into any react app: ... <JsonDiff oldJson={{ a: 1, b: 2, c: 4, d: ["hello", "world"], nested: { e: 5, f: 6, h: ["goodbye", "world"], i: 8 }, }} currentJson={{ a: 1, b: 2, c: 3, d: ["hello", "everyone"], nested: { e: 5, f: 6, g: 7, h: ["goodbye", "everyone"] }, }} isHidden={false} // set to true to hide unchanged fields, false to show all fields />
Author   johnwdunn20