JSON Schema Generator
Generate JSON Schema automatically from sample JSON data with type detection and proper structure.
💡 Usage Tips
- Paste your JSON sample data to generate a schema
- The generator automatically detects types: string, number, boolean, array, object
- Enable pattern detection to identify email, URL, and other common patterns
- Include examples to add sample values to the schema
- Generated schema follows JSON Schema Draft 7 specification
📝 Example
Input JSON:
{
"name": "John",
"age": 30,
"email": "john@example.com",
"isActive": true,
"tags": ["admin", "user"]
}
Generated Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "number"
},
"email": {
"type": "string",
"format": "email"
},
"isActive": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["name", "age", "email", "isActive", "tags"]
}