GroupDocs.Comparison for Python via .NET compares JSON files and detects differences in nested objects, arrays, data types, and structures. This is useful for validating APIs, configurations, and large datasets where accuracy is critical.
The API can:
Compare two or more JSON documents.
Highlight differences in nested objects, arrays, and values.
Produce a visual HTML report with highlighted differences, or a textual merged JSON file with inline diff markers.
Accept or reject detected changes programmatically.
The resulting result.json contains the combined JSON structure with differences highlighted inline.
Example 2: Visual comparison (HTML report with summary)
Generate a single HTML report that highlights changes visually — deletions in red, insertions or modifications in blue. Add a summary page that lists every change.
Merged JSON with inline diff markers ([deleted], (inserted))
Programmatic diff post-processing
.html
Single HTML report with deletions in red and insertions in blue
Human review, embedded into a PR-review UI
.md / .txt
Plain-text diff representation
CI log output, ChatOps notifications
generate_summary_page = True appends a high-level change-count summary to any output format. detect_style_changes = True ensures structural / type-level changes in JSON (e.g., a string becoming a number) are surfaced explicitly.