{"ok":true,"result":{"slug":"json-to-zod","name":"JSON to Zod","summary":"Generate Zod schemas (and inferred TypeScript types) from a sample JSON document, optionally detecting string formats such as email, URL, UUID and dates.","description":"Generate Zod schemas and z.infer types from a JSON sample, with nested schemas, nullable and optional keys, unions and optional email, URL, UUID and date checks.","method":"POST","endpoint":"/api/v1/tools/json-to-zod","plan":"free","mcpName":"json_to_zod","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"A sample JSON document (object or array).","maxLength":200000},"rootName":{"type":"string","description":"Name of the top-level type; the schema is named <rootName>Schema in camelCase.","default":"Root","maxLength":100},"detectFormats":{"type":"boolean","description":"Add .datetime(), .date(), .email(), .url() and .uuid() when every sample value matches.","default":false},"exportTypes":{"type":"boolean","description":"Add `export type X = z.infer<typeof xSchema>` for each schema.","default":true}},"required":["input"]},"example":{"input":"{\"id\":\"3f2b8c1e-4d5a-4b6c-9e7f-1a2b3c4d5e6f\",\"email\":\"ada@example.com\",\"age\":36}","rootName":"User","detectFormats":true},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-to-zod","page":"https://pithlab.com/tools/json-to-zod"}}