Generate strongly typed models and serializers from JSON, JSON Schema, TypeScript and GraphQL in many languages
open sourceApache-2.0free
quicktype generates strongly typed models and serializers from sample JSON, JSON API URLs, JSON Schema, TypeScript and GraphQL queries, so you can work with JSON type-safely in your language. It targets Ruby, JavaScript, Flow, Rust, Kotlin, Dart, Python, C#, Go, C++, Java, Scala, TypeScript, Swift, Objective-C, Elm, JSON Schema, Haskell and more. It runs as a CLI and Node.js package (npm install -g quicktype) and as a web app at app.quicktype.io, which works offline and doesn't send your sample data over the internet. It's from Glide and Apache 2.0 licensed.
Ways to install
Package managers
Problems it solves
- I have a JSON API response and want typed models for it in Swift
- I need to generate Go structs from a JSON Schema
- I want TypeScript types and runtime checks for a JSON file
Features
- Types and serializers from JSON samples, JSON Schema, TypeScript and GraphQL queries
- Over 20 target languages, including Rust, Go, Swift, Kotlin, C# and Python
- CLI and Node.js library
- Web app that works offline without sending your data
