Skip to content

feat: add JSON Diff Viewer tool#35

Open
naowas wants to merge 4 commits intome-shaon:mainfrom
naowas:main
Open

feat: add JSON Diff Viewer tool#35
naowas wants to merge 4 commits intome-shaon:mainfrom
naowas:main

Conversation

@naowas
Copy link
Copy Markdown

@naowas naowas commented Mar 30, 2026

This PR features a new JSON Diff Viewer tool that enables users to compare two JSON objects (Original vs. Modified) and see differences in a clear, human-readable format.

Included:

  • New JSON Diff Viewer tool
  • JSON validation and error display
  • Compare action with easy-to-readable diff output (added/removed/changed)
  • Copy buttons, sample JSON, swap, etc.
2

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a JSON Diff Viewer tool, featuring a React-based UI for side-by-side comparisons and a utility for calculating structural differences in JSON data. The implementation includes support for identifying added, removed, and changed fields, along with comprehensive unit tests. Review feedback highlights opportunities to improve the user experience by handling empty inputs more gracefully, enhance maintainability by replacing magic numbers with constants, and simplify redundant logic in the path generation utility.

Comment thread src/components/tools/JsonDiffViewer.tsx
Comment thread src/components/tools/JsonDiffViewer.tsx Outdated
Comment thread src/utils/json-diff.ts Outdated
@me-shaon
Copy link
Copy Markdown
Owner

me-shaon commented Apr 8, 2026

@naowas Please fix the code review issues.

@naowas
Copy link
Copy Markdown
Author

naowas commented Apr 8, 2026

@naowas Please fix the code review issues.

Fixed all the review points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants