How to use
- Paste JSON.
- Choose interface or type output.
- Copy the generated types.
FAQ
How is the array type inferred?
From the first element of the array.
Field names with spaces?
Wrapped in quotes when not valid identifiers.
About this JSON to TypeScript
Front-end inference. Array element type is taken from the first element; mismatches fall back to any.