Why it matters
Typing an API response by hand is slow and easy to get wrong, especially when a key only appears in some items of a list.
This reads every item of every list, so optional fields are marked optional, and keys that aren't valid Python names keep a working alias.
How to use it
- Type or paste your input; the example shows the format.
- Press Generate. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Why are some fields Optional?
They were null in the sample, or missing from at least one item in a list of objects.
How are camelCase keys handled?
Field names become snake_case. Pydantic gets Field(alias=…), msgspec gets rename, and dataclasses note the original key so you can map it.
Can I use it for TypedDict with keys that aren't valid names?
Yes: TypedDicts with keys like 'first-name' are written in the functional form, which allows any key.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.