A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"name":"John Doe","age":30,"email":"john@example.com","department":"Engineering","active":true}{
"openapi": "3.0.0",
"info": {
"title": "Generated API",
"version": "1.0.0"
},
"paths": {
"/resource": {
"get": {
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "string"
},
"email": {
"type": "string"
},
"department": {
"type": "string"
},
"active": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
Generate OpenAPI schemas from JSON samples with automatic type inference and property detection. Part of the DevTools Surf developer suite. Browse more tools in the API / Config collection.