Developer Productivity Utility

TS / JSON 檔案轉換器

輕鬆將原始 JSON 轉成強型別的 TypeScript Interface 與 Type 定義,100% 本地運算。

Input Raw JSON
Generated TypeScript TypeScript Output
export interface RootObject {
  id: number;
  title: string;
  published: boolean;
  tags: string[];
  author: RootObjectAuthor;
  metrics: RootObjectMetrics;
}

export interface RootObjectMetrics {
  views: number;
  likes: number;
}

export interface RootObjectAuthor {
  name: string;
  email: string;
  social: RootObjectAuthorSocial;
}

export interface RootObjectAuthorSocial {
  github: string;
  twitter: any;
}