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
- Compare two JSON documents as usual to open the result page.
- 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.
- 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 Compare | Git Diff | |
|---|---|---|
| Comparison method | Structural comparison of parsed JSON values | Line-by-line text comparison |
| What counts as a change | Value changes, type changes, added or deleted keys | Any changed, added, or deleted line |
| Key order and formatting | Ignored | Treated as text differences |
| Best for | Understanding semantic changes in data | Reviewing 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.