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

Kiểm Tra JSON Schema

Kiểm tra xem dữ liệu JSON của bạn có tuân thủ đúng cấu trúc, kiểu dữ liệu và ràng buộc được định nghĩa trong JSON Schema hay không.

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

JSON

JSON Schema

Validation result

JSON is valid for this schema.

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ủ.

Kiểm Tra JSON Schema là gì?

Paste JSON and a JSON Schema to check common structure rules such as required fields, types, enums, lengths, ranges, array items, and additional properties.

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

How to validate JSON with a schema

Rules this validator checks

The validator supports common type checks, required object keys, properties, additionalProperties false, enum, const, string length, string pattern, numeric minimum and maximum, array length, and item schemas.

Unsupported schema keywords

Some JSON Schema features are detected but not evaluated, including oneOf, anyOf, allOf, not, $ref, if/then/else, dependencies, patternProperties, and format. When those appear, the tool shows a warning.

Reading errors

  • Each issue includes a JSON path such as $.id or $[1].name.
  • Fix syntax errors before checking schema rules.
  • Treat a warning about unsupported keywords as a reason to use a full validator before production.

Validation notes

Schema validation is only as complete as the rules this tool evaluates. Use a full JSON Schema validator when unsupported keywords are central to your contract.

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

Does it support $ref?

No. $ref is detected as unsupported and is not resolved, so schemas that rely on references need a full JSON Schema validator.

Does format validate emails or URLs?

No. The format keyword is reported as unsupported. Use pattern or a full validator if format checks matter.

Can it validate tuple arrays?

Yes. When items is an array of schemas, each array position is checked against its matching schema.

Why does valid JSON still show issues?

Valid JSON syntax only means the text parses. Schema validation then checks whether the parsed value follows the schema rules.

Công Cụ Liên Quan