API response comparison
Compare JSON responses from v1 and v2 endpoints to confirm added fields, removed fields, and value changes during integration or regression testing.
Compare two JSON documents side by side, inspect added, removed, and changed fields, and export summaries, Markdown reports, or JSON Patch. Everything runs locally in your browser.
Compare JSON responses from v1 and v2 endpoints to confirm added fields, removed fields, and value changes during integration or regression testing.
Compare development, staging, and production JSON config files while using ignore-order rules to reduce irrelevant noise.
Check old and new JSON structures after migration work so renamed fields, default values, and split objects are easy to verify.
Compare two requests, logs, or state snapshots to understand exactly what changed before and after an issue appeared.
Import or paste two JSON files and inspect structural and field-level differences for configs, exports, fixtures, or API samples.
Dùng công cụ so sánh JSON online này để xem hai JSON song song, làm nổi bật khác biệt và xuất patch hoặc báo cáo cho version control và kiểm thử API.
Understand version drift before acting on it
In most workflows, you care about whether fields were added, removed, or changed in meaning, not whether two files differ by whitespace or order. That is why a structural JSON compare is more useful than plain text diff.
If you only need the high-level answer first, read the summary. If you need exact field-level context, stay in the diff view.
These examples mirror the most common JSON diff workflows in development, QA, and operations: API upgrades, environment config review, and data migration verification.
This is ideal when frontend and backend teams need to verify exactly what changed between response versions.
This kind of diff is especially useful when you need to verify added fields before updating tests or frontend models.
When object keys or array members are semantically unordered, selective ignore rules can reduce a lot of useless diff noise.
With ignore order enabled, the important change becomes obvious: retry changed, while the feature list did not meaningfully drift.
This works well when old structures are being split, renamed, or normalized into a new shape.
If the migration pipeline needs repeatable change application, exporting both the Markdown report and JSON Patch is often worthwhile.
Tutorial Step
Bước 1 – Dán hoặc nhập cả hai JSON
Before you look at the diff, be clear about what each side represents: old versus new, staging versus production, previous response versus current response. That mental model makes the later change review much easier.
Tutorial Step
Bước 2 – Cấu hình tùy chọn so sánh
Ignore whitespace, case, and order are useful only when they match the meaning of your data. The fastest approach is to choose them intentionally instead of enabling every option by default.
Tutorial Step
Bước 3 – Xem trực quan diff
A useful comparison is more than colored highlights. The best signal usually comes from combining three things: the field-level diff, the change counts in the status area, and the high-level summary you can copy or export.
Tutorial Step
Bước 4 – Xuất kết quả
This page does not just show differences. It can produce three useful outputs depending on what happens next: summary text for communication, Markdown reports for documentation, and JSON Patch for automation.
A more reliable compare workflow
Validate both payloads first so broken JSON does not pollute the diff.
Review the raw comparison once before enabling ignore rules so you understand what noise is present.
Use the diff highlights, counts, and summary together to judge the scale and type of change.
Use summary text for communication, Markdown reports for records, and JSON Patch for automation.
If one side still needs field-level inspection or editing, continue into the formatter or table editor after comparison.
The compare page is best used to answer not whether two files look different, but where the JSON structure and meaning actually changed.
Mẹo nhanh khi so sánh JSON
Kết hợp các công cụ này với so sánh JSON cho workflow validate, format và tạo code.
Công cụ thực hiện diff theo cấu trúc để phát hiện thêm, xóa và sửa trong các object/array lồng nhau.
Không. Mọi xử lý diễn ra cục bộ trong trình duyệt và không bao giờ tải lên máy chủ của chúng tôi.
Bạn có thể bỏ qua khoảng trắng, bỏ qua hoa/thường và bỏ qua thứ tự để tập trung vào thay đổi cấu trúc quan trọng thay vì khác biệt định dạng.
Có. Tùy chọn này chuẩn hóa khoảng trắng bên trong giá trị chuỗi. Khoảng trắng ngoài chuỗi đã được bỏ qua khi JSON được phân tích.
Có. Khi bật, key và giá trị chuỗi sẽ được so sánh không phân biệt hoa/thường để giảm sai khác không cần thiết.
Có. Bỏ qua thứ tự coi key của object và phần tử của array là không phụ thuộc thứ tự — hữu ích khi thứ tự không quan trọng.
Khi bật một tùy chọn bỏ qua, chế độ diff chuyển sang bản xem trước đã chuẩn hóa để highlight khớp đúng quy tắc, nên editor sẽ chỉ đọc. Tắt tùy chọn để quay lại chỉnh sửa JSON gốc.
JSON Patch là tiêu chuẩn danh sách thao tác (add, remove, replace, v.v.) để biến đổi một tài liệu JSON thành tài liệu khác.
Chúng tôi tính toán tập thao tác đáng tin cậy từ A → B dựa trên JSON Pointer paths. Với array, có thể dùng thay thế thận trọng để tránh lệch chỉ mục.
Dùng Sao chép tóm tắt để có overview nhanh, Xuất báo cáo để tải báo cáo Markdown, hoặc Xuất JSON Patch để áp dụng thay đổi bằng lập trình.