Generate a Zod schema from JSON
Paste a representative JSON sample and get a ready-to-use Zod schema plus
an inferred TypeScript type. Nested objects are inlined as z.object(...),
arrays become z.array(...), and mixed arrays produce a z.union(...) element
type.
Because the schema is inferred from one sample, add .optional() or
.nullable() where your real data needs it. All inference happens in your
browser — your JSON is never uploaded or stored.