資料格式

JSON Schema Generator

Infer a JSON Schema from a sample JSON document, with draft selection and required policies.

浏览器内处理即时输出本地数据

為什麼用這個工具

03

Paste a JSON sample and get a draft-2020-12 or draft-07 schema with detected string formats, merged array items, and configurable required handling.

JSON Schema Generator infers a schema from a sample JSON document so you can validate future payloads, generate TypeScript, or document APIs.

It merges array element schemas, detects common string formats (date-time, email, uri, uuid), and supports draft 2020-12 and draft-07.

怎麼使用

03
01Paste a representative JSON sample (object or array of objects).
02Pick the schema draft and the required-field policy.
03Copy the generated schema from the output panel.

複製前快速檢查

03

先确认输入格式符合你的预期。

在把结果用于文档、链接、配置或消息前快速扫一眼。

只复制你真正需要的输出。

常見問題

03
What does the smart required policy do?

For arrays, every element schema is merged and only the keys present in every element stay required. For single objects it behaves like 'all required'.

Does it detect string formats?

Yes. Date, date-time, email, uri, and uuid formats are inferred from sample values.

Is my JSON sent anywhere?

No. Inference runs entirely in this tab.

相關工具

03