./prontouso.com
CÔNG CỤ LẬP TRÌNH

So Sánh Đối Tượng JSON

Phát hiện sự khác biệt về khóa (keys), mảng và giá trị giữa hai tài liệu JSON. Hiển thị các thuộc tính bị xóa, thêm mới hoặc thay đổi giá trị.

Trạng thái công cụChạy trên trình duyệt của bạn
Xem trước

Điểm khác biệt

~$.active: true -> false
+$.role: "admin"

2 change(s) found.

Cách thức hoạt động

  1. Nhập dữ liệu của bạn

    Điền các giá trị cần thiết, dán văn bản hoặc tải lên tệp bạn muốn xử lý.

  2. Xem kết quả tức thì

    Hầu hết các công cụ cập nhật theo thời gian thực khi bạn nhập liệu; một số công cụ sử dụng một nút hành động duy nhất.

  3. Sử dụng kết quả

    Sao chép, tải xuống hoặc chia sẻ kết quả được tạo — bạn luôn có toàn quyền kiểm soát dữ liệu của mình.

Quyền riêng tư & xử lý dữ liệuChạy cục bộ 100% trên trình duyệt của bạn. Công cụ này không tải dữ liệu của bạn lên máy chủ.

So Sánh Đối Tượng JSON là gì?

Paste two JSON values and see which properties were added, removed, or changed.

TÌM HIỂU CÁCH HOẠT ĐỘNG CỦA CÔNG CỤ

How to compare two JSON documents

What it compares

The diff checks objects, arrays, and primitive values after both sides are parsed as JSON.

How to use it

  • Paste the original JSON on the left.
  • Paste the updated JSON on the right.
  • Review added, removed, and changed paths.

Useful for developers

  • Compare API responses.
  • Check configuration changes.
  • Review small JSON payload differences before debugging deeper.

Diff notes

The comparison focuses on parsed JSON values, so property order and whitespace are ignored while value, type, object, and array changes are reported by path.

Các Câu Hỏi Thường Gặp (FAQ)

Does it support nested values?

Yes. Differences include nested object and array paths.

Does key order matter?

Object key order is not treated as a change by itself.

Can I compare invalid JSON?

No. Both inputs need to parse as valid JSON first.

How are array changes shown?

Arrays are compared by index, so inserting an item near the start can show several changed positions after it.

Công Cụ Liên Quan