A worked example, rendered from real sample data. Sign in to run the tool on your own input.
[{"id":1,"name":"Alice","email":"alice@test.com","role":"admin","createdAt":"2024-01-15"},{"id":2,"name":"Bob","email":"bob@test.com","role":"user","createdAt":"2024-02-20"}]export interface Root {
id: number;
name: string;
email: string;
role: string;
createdAt: string;
}
export type RootList = Root[];

Generate TypeScript interfaces from JSON data. Part of the DevTools Surf developer suite. Browse more tools in the Generators collection.