Root type name
Output
interface
type alias
Add export
readonly properties
JSON
{ "id": 42, "name": "Ada Lovelace", "email": "ada@example.com", "active": true, "tags": ["admin", "beta"], "address": { "city": "London", "zip": null }, "orders": [ { "id": "A1", "total": 19.99, "items": 2 }, { "id": "A2", "total": 5.5, "items": 1, "coupon": "SAVE5" } ] }
TypeScript
Copy TypeScript
Powered by
SnagATool
— Free JSON to TypeScript