What Is a Text, JSON & YAML Semantic Diff Viewer?
A diff viewer compares two inputs and highlights added, removed, or modified content. In Text mode, lines are compared exactly as entered. In JSON and YAML modes, the tool parses each document, recursively sorts object keys to eliminate property-order noise, and provides both canonicalized line diffs and a Semantic Fields (JSONPath) inspection table. The semantic diff table pinpoints added, removed, modified, and type-changed fields by path (such as $.user.role), with optional filters to ignore volatile keys like timestamps or array element order.
How to Use the Diff Viewer
- 1Choose Text, JSON, or YAML from the Compare as selector.
- 2Paste the baseline content into the Original box and the updated content into the Modified box.
- 3In JSON or YAML mode, optionally enter comma-separated keys to ignore (e.g., updatedAt, traceId) or toggle Ignore array item order.
- 4Switch between Side by Side, Unified patch, and Semantic Fields (JSONPath) tabs to inspect line-level or path-level changes.
- 5Copy the unified patch output for git apply or documentation.
Common Use Cases
API Payload & JSON Semantic Comparison
Compare two JSON API responses ignoring key order and dynamic fields (updatedAt, requestId) to inspect exact JSONPath value and type changes.
Kubernetes & YAML Configuration Review
Compare YAML manifests or Helm values by parsed data structure rather than indentation or key ordering.
Source Code & Patch Generation
Compare source code revisions and export a standard unified diff patch compatible with git apply and patch.
Document & Contract Revision Tracking
Compare drafts of plain-text documents or configuration files to see every added or deleted line.
Frequently asked questions
How does Semantic Fields (JSONPath) mode differ from line diff?
Line diff compares text lines after formatting and sorting keys, whereas Semantic Fields mode walks the parsed JSON or YAML object tree and lists every changed property path (e.g., $.database.port), whether it was added, removed, modified, or changed data type (such as string to number).
Can I ignore dynamic keys like timestamps or request IDs when comparing JSON?
Yes. In JSON or YAML mode, type any comma-separated property names (such as updatedAt, traceId) into the Ignore keys box to exclude them from the semantic field comparison.
Is my text or JSON sent to a server?
No. All text, JSON, and YAML parsing and diffing run 100% locally in your browser.
Why does Text mode show changes on every line when two files look identical?
This is usually caused by mismatched line endings (Windows CRLF vs Unix LF) or trailing whitespace. In JSON and YAML modes, parsing and recursive key sorting eliminate formatting and whitespace noise.