PH000 Diff 查看器(比较 2 PH000 文件)

并肩粘贴两张PH000文档,只保留结构差异.

添加,删除,更改,以及类型更改被分开,所以评论保持快速和可读性.

仅在瀏覽器内處理,不上傳到伺服器
陣列感知模式可減少审查雜訊
可匯出 JSON Patch 与 JSON Merge Patch
您的 PH000 仅在此浏览器中进行比较, 并且从未上传到服务器。

Recommended workflow

  1. Clean or sort the JSON first with JSON Formatter or JSON Key Sorter when you want consistent input.
  2. Paste or upload the left and right JSON documents, then run Compare.
  3. Choose the array mode, match keys, tolerance, and path rules that fit the review.
  4. Review the summary, changed paths, tree, and exportable patch output.

样本

这個示例展示了如何用匹配键、容差和路徑規則,把陣列重排、时间戳变化、微小浮点差異以及新增项缩小到更清晰的差異范围。

左侧 PH000

輸入
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:00:00Z",
  "customer": {
    "name": "Acme Corp",
    "tags": ["vip", "beta"]
  },
  "items": [
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10
    },
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5
  }
}

右侧 PH000

輸入
{
  "orderId": "A-1001",
  "updatedAt": "2026-04-16T08:05:00Z",
  "customer": {
    "name": "Acme Corporation",
    "tags": ["beta", "vip"]
  },
  "items": [
    {
      "sku": "B-2",
      "qty": 1,
      "price": 4.5
    },
    {
      "sku": "A-1",
      "qty": 2,
      "price": 10.0001
    },
    {
      "sku": "C-3",
      "qty": 1,
      "price": 7
    }
  ],
  "summary": {
    "currency": "USD",
    "total": 24.5001
  }
}

示例說明

这個示例展示了如何用匹配键、容差和路徑規則,把陣列重排、时间戳变化、微小浮点差異以及新增项缩小到更清晰的差異范围。

怎样用?

  1. 将 PH000 粘贴到左右编辑器中。
  2. 必要时调整密钥顺序、数组顺序和显示模式。
  3. 运行比较,然后复制或下载报告。
  4. Copy or download the changed paths, patch, merge patch, or report when you are done.

它会做什么

  • 逆向比较PH000结构.
  • 分离增加了PH000移除的/更改了/类型 更改条目.
  • 在树和列表视图之间切换。
  • 复制或下载报告为PH000。
  • 匯出 JSON Patch、JSON Merge Patch、變更路徑,以及 Markdown 報告。
  • 摺疊未变化的節點,并直接跳转到相關路徑。

光谱

  • 按键顺序不影响默认比较结果.
  • 串列按默认顺序比较,但行为可以改变.
  • 此工具无法验证 PH000 Schema。
  • 所有处理都留在浏览器中. 没有被发送到服务器。
  • 非常大的PH000文档取决于浏览器的性能.
  • 大輸入會使用先摘要后细节的渲染方式,并可禁用自动比較。

PH 00000 (菲律宾盾)

能否忽略密钥顺序 ?

对 默认行为避免了结果中的键序噪声.

是否比较了阵列位置 ?

是的,默认的。 您可以改变设置面板中的行为。

它是否验证了PH000Schema?

没有 它只注重结构疏导.

上传到服务器了吗?

没有 比较完全发生在您的浏览器中。

內容會上傳到伺服器吗?

不會。比較、正規化和匯出都在你的瀏覽器本地完成。

我可以匯出什么?

JSON Patch、JSON Merge Patch、變更路徑,以及 Markdown 報告。