JSON to TypeScript

JSON Client-Side Privacy

Generate TypeScript interfaces from a JSON sample.

interface Root {
  readonly id: number;
  readonly name: string;
  readonly isActive: boolean;
  readonly address: Address;
  readonly tags: string[];
  readonly metadata: Metadata;
}

interface Address {
  readonly street: string;
  readonly city: string;
  readonly zip: string;
}

interface Metadata {
  readonly created: string;
  readonly score: number;
}