JsonDiffPatch

Compares and patches JSON objects with a compact delta format that captures additions, modifications, deletions, and array moves f

benjamine 5.3k ↓ 7k
Claude CodeClaude DesktopGeneric
View source ↗

jsondiffpatch is a JavaScript library that compares and patches JSON objects, providing a compact delta format that captures additions, modifications, deletions, and array moves. Created by Benjamin Eidelman, it features smart array diffing using LCS algorithm, multiple output formatters (HTML, console, JSON Patch RFC 6902), and text diffing for long strings. The library includes an MCP server implementation that enables AI assistants to compare text or structured data in various formats (JSON, YAML, TOML, XML) and get readable diffs. Ideal for version control systems, data synchronization, and change visualization in web applications.

Source

Repository: https://github.com/benjamine/jsondiffpatch/tree/HEAD/packages/diff-mcp

Maintain JsonDiffPatch?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

JsonDiffPatch on getagentictools
[![JsonDiffPatch on getagentictools](https://getagentictools.com/badge/mcp/benjamine-jsondiffpatch.svg)](https://getagentictools.com/mcp/benjamine-jsondiffpatch?ref=badge)