JSON Schema Generator
Turn any JSON sample into a draft-07 JSON Schema with inferred types and formats.
JSON Schema (draft-07)
{
"$schema": "https://json-schema.org/draft-07/schema#",
"title": "Root",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email"
},
"active": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"profile": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": [
"city"
]
}
},
"required": [
"id",
"email",
"active",
"tags",
"profile"
]
}