JSON to typesTurn a JSON sample into typed models

Turn a JSON response into typed models

Paste a JSON response to get matching structs, records and typed interfaces.
Try
JSON response
16 lines
Inferred shape
3 types14 fieldsdepth 21 optional
Types emittedRoot, Customer, Item
string4 fields
integer2 fields
number2 fields
boolean2 fields
array2 fields
object1 field
null1 field
Optional becausea null value or a key missing from one array item
22 lines
Hand-written types drift the moment the API changes. Generate a typed client from your OpenAPI spec, models included, and regenerate it whenever the spec changes.