Git Diff View

Besides the structural comparison, the result page can switch to a Git Diff view that shows line-by-line text differences, just like git diff.

How to Switch

  1. Compare two JSON documents as usual to open the result page.
  2. In the toolbar at the top of the result page, use the segmented control on the right to switch between Data Compare and Git Diff.
  3. Select Git Diff to see the two inputs rendered in a side-by-side diff editor.

You can switch back to Data Compare at any time. The back button and the settings button stay in the toolbar in both views.

Differences Between the Two Views

Data CompareGit Diff
Comparison methodStructural comparison of parsed JSON valuesLine-by-line text comparison
What counts as a changeValue changes, type changes, added or deleted keysAny changed, added, or deleted line
Key order and formattingIgnoredTreated as text differences
Best forUnderstanding semantic changes in dataReviewing raw text changes like git diff

Notes

  • The Git Diff view is read-only and compares the original input text as entered.
  • Formatting differences (indentation, key order) do not appear in Data Compare but do appear in Git Diff, so the two views may report different results for the same inputs.