JSON → Types
Shortcut ⌘↵Paste a JSON sample and get a TypeScript interface, Zod schema, Go struct, or JSON Schema.
100% client-side · no data leaves this device
Named types
4
Output lines
25
TypeScript output
export interface Root {
id: number;
name: string;
price: number;
active: boolean;
nickname: null;
tags: string[];
meta: Meta;
items: Item[];
extras: Extras;
history: unknown[];
}
export interface Meta {
createdAt: string;
views: number;
}
export interface Item {
sku: string;
qty: number;
note?: string;
}
export type Extras = Record<string, unknown>;Types are inferred from one sample payload — widen unions by hand if the API can return extra shapes.