A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"id":42,"name":"Ada Lovelace","email":"ada@example.com","active":true,"tags":["admin","early-adopter"],"profile":{"age":36,"city":"London"}}export interface Root {
id: number;
name: string;
email: string;
active: boolean;
tags: string[];
profile: {
age: number;
city: string;
};
}
Infer TypeScript interfaces from JSON with deep nesting + optionals. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.