Original Summary

I’ve been working on JSON Semantic Diff , an open-source tool for comparing JSON. The main problem I wanted to solve is that traditional diffs get really noisy when arrays of objects are reordered - even if the underlying records barely changed. Instead of comparing only by index, it tries to infer which objects are actually the same. That can be a simple key like id or sku , or even a composite like store + sku . If the match is ambiguous, it falls back to positional diffing instead of guessing, and you can manually choose the keys. It’s still early/alpha, but the core flow is working. Everything runs locally in the browser. Would love feedback, especially weird JSON examples that break the matching logic. Try it: https://jsonsemanticdiff.dev GitHub: https://github.com/cchandurkar/json-semantic-diff   submitted by   /u/cchandurkar [link]   [comments]

中文概览

中文标题: 我正在构建一个尝试理解对象身份、而不仅是数组位置的 JSON diff 工具

作者开发了开源工具 JSON Semantic Diff,用于比较 JSON。它想解决传统 diff 在对象数组重排时产生大量噪声的问题:不只用索引比较,而是推断哪些对象实际相同,可用 id、sku 或 store+sku 等简单或复合键。匹配有歧义时会退回按位置 diff,而不强行猜测,也可手动选择键。目前仍处于早期/alpha,但核心流程可用,全部在浏览器本地运行。作者希望获得反馈,尤其是能破坏匹配逻辑的奇怪 JSON 示例。


  • 情报分类:开源项目与落地
  • 分类依据:开源JSON语义差异工具,解决数组对象重排噪声,支持自定义匹配键,本地浏览器运行。
  • 信息来源:Reddit · SideProject
  • 发布时间:2026/9/15 09:14:31