最大深度
—
屬性總數
—
狀態
—
為什麼用這個工具
01貼上 JSON 範例,即可取得 draft-2020-12 或 draft-07 格式的 schema,並自動偵測字串格式與必填欄位。
JSON Schema 產生器可從範本 JSON 推導 schema,用於驗證資料、產生 TypeScript 型別或記錄 API。
自動合併陣列元素 schema,並偵測 date-time、email、uri、uuid 等常見格式。
怎麼使用
02複製前快速檢查
03先確認輸入格式符合您的預期。
在把結果用於文件、連結、設定或訊息前快速掃一眼。
只複製您真正需要的輸出。
常見問題
04「智慧必填」策略是什麼意思?
針對陣列,只有在每個元素中都存在的鍵才會標記為必填;單一物件則等同「全部必填」。
它能偵測字串格式嗎?
可以。date、date-time、email、uri 和 uuid 格式會從範本值自動推導。
我的 JSON 會被上傳嗎?
不會。推導過程完全在本分頁執行。
相關工具
03JSON 格式化工具→
在瀏覽器中格式化、壓縮並驗證 JSON。
JSON ↔ YAML Converter→
Convert between JSON and YAML in your browser using the standard js-yaml library — both directions, configurable indent, safe-by-default parsing.
JSON to TypeScript Types→
Generate TypeScript interface declarations from a JSON sample — nested types, arrays, optional keys inferred.