{"ok":true,"result":{"slug":"json-to-typescript","name":"JSON to TypeScript","summary":"Generate TypeScript interfaces or type aliases from a sample JSON document. Keys missing from some array items become optional.","description":"Generate TypeScript interfaces or type aliases from JSON, with named nested types, merged array shapes, optional keys and null unions. Runs in your browser.","method":"POST","endpoint":"/api/v1/tools/json-to-typescript","plan":"free","mcpName":"json_to_typescript","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.","default":"Root","maxLength":100},"style":{"type":"string","description":"interface emits `interface X {}`; type emits `type X = {}`.","default":"interface","enum":["interface","type"],"maxLength":200000},"exportKeyword":{"type":"boolean","description":"Prefix each declaration with export.","default":true}},"required":["input"]},"example":{"input":"{\"id\":1,\"title\":\"Hello\",\"author\":{\"name\":\"Ada\"},\"tags\":[\"intro\"]}","rootName":"Post"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/json-to-typescript","page":"https://pithlab.com/tools/json-to-typescript"}}