Generate TypeScript types from JSON samples, merge array-object fields into unions and optional properties, then copy or download types.ts.
Up to 1000000 UTF-16 input units, 64 levels, 100000 values and 20000 object properties; at most 2000000 output units.
Names use PascalCase; blank names become Root and leading digits gain Type. Names accept up to 80 characters.
Enter JSON and generate types, or load the sample.