Online JSON Schema generator that infers and produces a JSON Schema definition from pasted JSON data, supporting Draft-07 format for API documentation. Available on ToolNext — the free online toolbox.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "User",
"description": "User Info Model",
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Unique user ID",
"examples": [
1
]
},
"name": {
"type": "string",
"description": "User name",
"examples": [
"Alice"
]
},
"email": {
"type": "string",
"description": "Email address",
"examples": [
"alice@example.com"
]
},
"age": {
"type": "integer",
"description": "Age",
"examples": [
25
]
},
"active": {
"type": "boolean",
"description": "Is active",
"examples": [
true
]
},
"tags": {
"type": "array",
"description": "Tag list",
"examples": [
[
"admin",
"user"
]
],
"items": {
"type": "string"
}
}
},
"required": [
"id",
"name",
"email"
]
}