JSON → Zod Schema
Paste JSON and generate a Zod schema for TypeScript and Node.
- Generated locally in your browser
- We do not store your passwords
Options
Input
Output
import { z } from "zod";
export const RootSchema = z.object({
name: z.string(),
local: z.boolean(),
version: z.number().int(),
tools: z.array(z.string()),
});
export type Root = z.infer<typeof RootSchema>;