Skip to main content
>_devtools

JSON to JSON Schema Generator

Generate a JSON Schema from sample JSON: infers types, required properties, string formats, and merged array item shapes.

What this does

Paste a representative JSON value to infer a JSON Schema with property types, required fields, and array item shapes. Use several records when optional properties may be missing.

Example

Input:
{"id":7,"name":"Ada"}

Schema:
{
  "type": "object",
  "properties": {
    "id": { "type": "integer" },
    "name": { "type": "string" }
  },
  "required": ["id", "name"]
}

Limits and behavior

  • Inference describes observed values and cannot recover rules absent from the sample.
  • Input is limited to 1 MiB; remote references are not created.