Tool

JSON to TypeScript, JSON Schema, Python and Zod converter

Typing incoming webhook payloads catches breaking changes early. Paste one or more real examples (as an array) for better optional-field detection.

Inference rules

  • Objects inside arrays are merged; a key missing from some items becomes optional.
  • null values produce nullable types. A single sample cannot tell you what else a null field may contain, so review those by hand.
  • Integers become integer in JSON Schema and int in Python; a mix of integers and decimals becomes number or float.
  • Validate untrusted webhook payloads at the edge of your bot (Zod or pydantic) before using them.

Related: Webhook payload tester, cURL converter.