JSON to types
Paste sample JSON and get TypeScript interfaces or a zod schema, with optional and nullable fields worked out.
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.
- #dev
- #typescript
- · runs in your browser