JSON to TypeScript
Valid
{ "id": 1, "name": "Ada Lovelace", "active": true, "tags": ["math", "programming"], "address": { "city": "London", "zip": "SW1A" } }
export interface Address { city: string; zip: string; } export interface RootObject { active: boolean; address: Address; id: number; name: string; tags: string[]; }
Powered by
The Toolbox
— free JSON to TypeScript converter