Preparing tool
How to use JSON to Code Models
- Paste a sample of the JSON your API returns.
- Pick the language and the name of the top-level type.
- Copy the generated types into your project.
What are the limits of JSON to Code Models?
Types are guessed from your sample, so check them against the API docs. Mixed-type values become a generic type, and fields missing from some items are marked optional. Handles up to 2 MB. Your data stays on your device.