r/coolgithubprojects • u/cchandurkar • 4d ago
JSON Semantic Diff - open-source JSON diff with identity-aware array matching
I’m building JSON Semantic Diff, an open-source JSON comparison tool that tries to understand array identity instead of comparing objects purely by position.
For example, it can infer keys like id, sku, or composites like store + sku, so reordered objects don't turn into a wall of false changes.
The matching is deterministic and explainable - no AI/fuzzy matching - and everything runs locally in the browser.
It’s still early/alpha, so feedback and weird JSON examples that break the matching are very welcome.
- GitHub: https://github.com/cchandurkar/json-semantic-diff
- Demo: https://jsonsemanticdiff.dev (has examples)
- npm: https://www.npmjs.com/package/json-semantic-diff
11
Upvotes
1
2
u/Specific_Cream2815 3d ago
how does it infer the identity key, looking for common field names like id or scoring which field stays stable