Skip to content
jigg.dev

JSON to types

Paste sample JSON and get TypeScript interfaces or a zod schema, with optional and nullable fields worked out.

Output
Declare objects as

Arrays are merged: a key missing from some items is optional, and a value that's sometimes null is nullable. Paste several examples in an array for better types.

JSON to types on jigg.dev ↗