← JSON to Types100% client-side
Input JSON
TypeScript Interfaces
interface Root {
  id: number;
  name: string;
  email: string;
  isActive: boolean;
  role: string;
  metadata: Metadata;
  projects: ProjectsItem[];
}

interface ProjectsItem {
  id: number;
  name: string;
  status: string;
  tags: string[];
}

interface Metadata {
  createdAt: string;
  lastLogin: string;
  preferences: Preferences;
}

interface Preferences {
  theme: string;
  notifications: boolean;
}

Find this useful?

Share JSON to Types with your team. Runs 100% in the browser.