QCSunny Lab

JSON Diff (Structural)JSON 结构化对比

Paste two JSON documents. The comparison is structural (parsed trees, not text), so reordered keys and different indentation do not show up as changes.粘贴两个 JSON 文档。比较基于解析后的树而非文本,键顺序不同、缩进不同都不会被当作变更。

Structural comparison of two JSON documents: added, removed and changed values listed by path, with a summary count of each. Key order, indentation and other formatting differences are not changes — the documents are parsed first, compared as trees.

Arrays compare by index, so an insertion shows as one added row plus the shifted changes after it — honest for data files, where position carries meaning.

Frequently asked questions

How is this different from the Text Diff tool?

Text Diff compares lines of text, so reformatting one line shows as a change. JSON Diff parses both documents and compares values, so {"a":1} and { "a" : 1 } are identical.

Is there a size limit?

The report lists at most 200 differences — two wildly different documents produce a note instead of a 10,000-row table.

中文说明

两个 JSON 文档的结构化比较:按路径列出新增、删除与变更的值,并汇总各类计数。键顺序、缩进等格式差异不算变更——先解析成树再比较。

数组按下标比较,因此插入会显示为一条新增加后续位移变更——对位置有含义的数据文件来说这是诚实的结果。

常见问题

和文本对比工具有什么区别?

文本对比逐行比较,重新排版一行就会显示为变更。JSON Diff 先解析两份文档再比值,{"a":1} 与 { "a" : 1 } 视为相同。

有大小限制吗?

报告最多列出 200 条差异——差异过大的两份文档会以一条提示收尾,而不是吐出一万行表格。