Why generate types from JSON?
APIs, config files and webhooks deliver JSON, but TypeScript, Go and runtime validators need an explicit shape. Writing interfaces by hand for a large response is slow and error-prone: a field that is sometimes missing, a number that is sometimes null, or a nested array of objects is easy to get wrong. This tool reads a real sample and infers the structure for you. Arrays of objects are merged, so keys that appear in only some items become optional, keys that are sometimes null become nullable, and every nested object gets its own named type.
Features
- • TypeScript interfaces or type aliases with optional (?) fields
- • Go structs with json tags, omitempty and idiomatic names (ID, URL)
- • Zod schemas with inferred TypeScript types, ordered so references resolve
- • Merges arrays of objects and detects null, mixed and integer values
- • Quotes keys that are not valid identifiers, such as "first-name"
Your data stays private
Parsing and code generation run in your browser. API responses with real customer data never leave your machine.