GUIDE

Compare text and structured data

Use a line comparison for a text patch and a structured comparison to find changed data values.

On this page

Compare two lines

In Text Diff put the earlier version in Before and the newer version in After. Choose Compare.

Before: Hello Ada
After: Hello Bo
The old line is removed and the new line is added.

Separate layout changes from data changes

JSON Diff compares JavaScript Object Notation values. Changing a number matters even if both documents are formatted differently.

Before: {"count":1}
After:  { "count": 2 }
The value of count changed from 1 to 2.

Save the right result

Download a patch from Text Diff to keep a line-by-line change. Use JSON Diff when you need a report of changed fields rather than a text patch.

Changing indentation alone creates a text difference but does not change the JSON value.