Tool Hub

JSON 結構驗證

資料 + 架構 → required/type/enum 驗證 (迷你)

✓ valid

使用方法

  1. Paste the JSON data into the left panel。
  2. Paste the JSON Schema into the right panel。
  3. Read the valid or invalid badge and the list of violations with their property paths。
  4. Note: supported keywords are type, required, properties, enum, pattern, minimum/maximum, minLength/maxLength。

範例

  • A schema requiring "name" as a string and "age" as a number flags {"name": 42} with two violations: wrong type for name and missing age。
  • A schema with pattern "^\\d{5}$" on a zip field reports a violation when the value is "1234" (only 4 digits)。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.