JSON to TypeScript / Go
Infer types from JSON and generate a TypeScript interface or a Go struct with json tags.
Generated code
Types come from the sample: an empty array becomes unknown[] / []any, and a field is optional only if some array elements lack it. Treat the output as a starting point.
Everything runs in your browser: input and results are never uploaded and are cleared when you reload or close the page. Judge the risk yourself when working with passwords or sensitive data.