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.
JSON
JSON Schema
Validation result
JSON is valid for this schema.
Cách thức hoạt động
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ý.
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.
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.
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.
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
- Khả dụngCục bộ
Trình Tạo Mã UUID / GUID Ngẫu Nhiên (Phiên Bản 4)
Tạo mã định danh duy nhất toàn cầu UUID v4 có độ ngẫu nhiên mật mã cao hàng loạt.
- Khả dụngCục bộ
Trình Định Dạng, Xác Thực & Nén JSON / YAML / XML
Định dạng, làm đẹp, kiểm tra cú pháp và nén gọn chuỗi dữ liệu JSON, YAML và XML tức thì.
- Khả dụngCục bộ
Trình Tạo & Đọc Mã QR Tùy Chỉnh
Tạo mã QR tùy biến cho URL, văn bản, mật khẩu WiFi, danh thiếp vCard và quét mã QR.
- Khả dụngCục bộ
Bộ Mã Hóa & Giải Mã Base64
Chuyển đổi văn bản hoặc tệp sang chuỗi mã Base64 và giải mã ngược lại tức thì.
- Khả dụngCục bộ
Bộ Mã Hóa & Giải Mã URL
Mã hóa hoặc giải mã ký tự đặc biệt trong URL theo chuẩn percent-encoding (RFC 3986).
- Khả dụngCục bộ
Chuyển Đổi Dấu Thời Gian (Unix Timestamp)
Chuyển đổi Epoch Unix Timestamp sang ngày giờ thực tế và ngược lại.
- Khả dụngCục bộ
Chuyển Đổi Thực Thể HTML
Mã hóa và giải mã các ký tự đặc biệt HTML thành thực thể an toàn.
- Khả dụngCục bộ
Kiểm Tra Biểu Thức Chính Quy (Regex)
Thử nghiệm và gỡ lỗi biểu thức Regex với hiển thị so khớp thời gian thực.
- Khả dụngCục bộ
Giải Mã Token JWT
Giải mã phần Header, Payload và kiểm tra hạn sử dụng của JSON Web Token.
- Khả dụngCục bộ
Trình Hỗ Trợ Biểu Thức Cron
Tạo, giải thích và xem trước lịch chạy của biểu thức Cron biểu diễn thời gian.