JSON to TypeScript
dev_json_to_tsGenerate TypeScript interfaces from a JSON sample: nested objects become named interfaces, arrays collapse to their element type, mixed arrays become unions, and keys that need quotes are handled. Deterministic — the same JSON always produces the same types. Use this when an agent needs to jSON sample → typed interfaces, ready to paste. x402 price $0.01/call (USDC, eip155:8453).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON | |
| rootName | Yes | Root type name |