import BaseLayout from '@versal/ui/BaseLayout';
const title = 'JSON to TypeScript Interface';
const description = 'Convert JSON data into clean TypeScript interfaces. Includes nested types, optional fields, arrays, and union types. Runs entirely in your browser.'
{description}{title}
Input JSON
How it works
null.?.Type mapping rules
JSON value TypeScript type 42, 3.14number"hello"stringtrue / falsebooleannullnull[1, 2, 3]number[][{...}, {...}] (array of objects)NestedType[]{"a": 1}NestedObject { a: number }