quicktype infers types from JSON, JSON Schema, and GraphQL, and generates models, serializers, and validators in more than 25 languages. Use it in the browser, from the command line, in your build, or hand it to your AI coding agent over MCP.
Generate Code NowAdd to your AI agent{
"people": [
{ "name": "Atticus",
"high score": 100 },
{ "name": "Cleo",
"high score": 900 },
{ "name": "Orly" },
{ "name": "Jasper" }
]
}Start with what you have: sample JSON,
API URLs, JSON Schema, or GraphQL queries.
class MyData {
people: Person[];
static fromJson(json: string) {…}
}
class Person {
name: string;
highScore: int?;
}quicktype infers the types and generates
models, serializers, and validators.
let data = MyData.fromJson('{
"people": [ { "name": "Olivia" } ]
}')
for person in data.people {
print(person.name)
person.highScore++
}
Ship code that your compiler, your IDE,
and your AI agent can all reason about.
quicktype lets agents understand JSON the way humans do: by inferring its shape and purpose. The more JSON you feed an LLM, the more confused it becomes. The more JSON you give quicktype, the better it understands it. Connect the quicktype MCP server and your agent stops guessing at data.
↑ click a language to try it