JSON Diff
Compare two JSON documents by what they mean rather than how they are laid out, and get the path of every difference.
Before
语法着色已关闭。
After
语法着色已关闭。
变更
The differences appear here.
No changes match this filter
完全在您的浏览器中运行。
关于此工具
A text diff on JSON reports the wrong thing. Reindent a file or move a property to the top and it lights up as dozens of changed lines while the data is identical. This compares the documents themselves, so what comes back is a list of paths whose values genuinely differ. Objects are treated as unordered, because that is what the specification says they are. Arrays are compared by position, which is the only honest reading when the tool cannot know whether one element was inserted or every element after it was rewritten. Values count as equal when they mean the same thing, so 1 and 1.0 match and two spellings of the same string match, but two long integers have to agree digit for digit before they are called equal.
使用方法
- Paste the original document on the left and the changed one on the right.
- 点击比较。使用交换两侧来反转比较方向。
- Read the differences underneath. Each one carries the path of the value and both sides of the change.