JsonDiffPatch
Summary
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.
Available Actions(1)
diff
Compare text or data and get a readable diff. Inputs: left (string | unknown[] | Record<string, unknown>), leftFormat (optional string), right (string | unknown[] | Record<string, unknown>), rightFormat (optional string), outputFormat (optional string)
Recensioni della Community
Nessuna recensione ancora. Sii il primo a recensire!
Accedi per unirti alla conversazione