quicktype is now available for Xcode, Visual Studio, and Visual Studio Code. There are many ways to use quicktype; the quicktype.io web app is the most powerful UI, works offline, and doesn't require installation.
VS Code Extension
Install from the VS Code marketplace:
- Open VS Code
- Go to Extensions (Cmd+Shift+X)
- Search for "Paste JSON as Code"
- Install and reload
Usage:
- Copy JSON to clipboard
- Open Command Palette (Cmd+Shift+P)
- Run "Paste JSON as Code"
- Enter a top-level type name
Xcode Extension
For Swift and Objective-C developers:
- Download quicktype for Xcode from the Mac App Store
- Enable the extension in System Preferences → Extensions → Xcode Source Editor
- Copy JSON to clipboard
- In Xcode: Editor → quicktype → Paste JSON as Code
Visual Studio Extension
For C# developers:
- Go to Extensions → Manage Extensions
- Search for "quicktype"
- Install and restart Visual Studio
- Right-click in editor → Paste JSON as Classes
Benefits
- Never manually write JSON parsing code again
- Stay in your IDE workflow
- Instant type-safe code from any JSON
- Works offline