quicktype JSON Schema to Typed Code Generator
Generate strongly-typed models and serializers from JSON, JSON Schema, TypeScript, and GraphQL queries in 20+ programming languages. quicktype turns sample data into production-ready type definitions for Swift, C#, Go, Python, Rust, Java, Kotlin, and more.
What it does
quicktype JSON Schema to Typed Code Generator
Generate strongly-typed models and serializers from JSON, JSON Schema, TypeScript, and GraphQL queries in 20+ programming languages. quicktype turns sample data into production-ready type definitions for Swift, C#, Go, Python, Rust, Java, Kotlin, and more.
Installation
Use the upstream install or setup path that matches your environment:
- npm install -g quicktype
- $ npm install quicktype-core
- npm install
- npm install --ignore-scripts # Install dependencies
Requirements and caveats from upstream:
- | Dart | Python | C# | Go | C++ |
- You can use quicktype as a JavaScript function within node or browsers. First add the quicktype-core package:
- const { lines: pythonPerson } = await quicktypeJSONSchema("python", "Person", jsonSchemaString);
Basic usage or getting-started notes:
-
There are many ways to use quicktype. app.quicktype.io is the most powerful and complete UI. The web app also works offline and doesn't send your sample data over the Internet, so paste away!
-
For the best CLI, we recommend installing quicktype globally via npm:
-
bash
-
Extracted from upstream docs: https://raw.githubusercontent.com/glideapps/quicktype/HEAD/README.md
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,589 chars)