FlowingDev

JSON 转代码

免费

把 JSON 样本变成带类型模型 (TypeScript, Zod, C#, Python, Go, Java, Kotlin, PHP, Rust) 和能直接跑的 HTTP 客户端代码 (HttpClient, RestSharp, fetch, Axios, requests, OkHttp, Guzzle…)。

JSON

输出

export interface Order {
  id: number;
  customer: Customer;
  items: Item[];
  tags: string[];
  created_at: string;
}

export interface Item {
  sku: string;
  title: string;
  qty: number;
  price: number;
  note?: unknown;
}

export interface Customer {
  name: string;
  email: string;
  vip: boolean;
}

在您的浏览器中本地处理 — 没有任何内容离开您的设备。