JSON Schema Generator
Infer a JSON Schema (draft-07) from a sample document.
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "integer"
},
"active": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"version",
"active",
"tags"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}About this tool
Paste a sample JSON document and instantly get a JSON Schema (draft-07). The tool merges shapes across array items so the resulting schema accepts every observed structure.