Skip to content

Generate Types

Click Generate Types in the explorer toolbar to turn the loaded JSON into type definitions. The panel infers the shape of the data, including nested objects and array element types, and renders the result for the language you pick.

Output Produces
TypeScript interface declarations, with type aliases for arrays and primitives
Zod A z.object schema plus an inferred TypeScript type
Rust pub struct definitions
Go type ... struct definitions
Python @dataclass class definitions
JSON Schema A JSON Schema document

Switch languages with the buttons at the top of the panel; the output regenerates immediately.

With no node selected, types are generated for the whole document. Select a node in the tree first to generate types for just that subtree, which is useful for pulling a single nested object out of a large response.

Use the copy button in the panel header to copy the generated output to the clipboard, then paste it into your project.