JSON to Go Struct
Free online JSON to Go struct generator.
Go
JSON to Go Struct
Interactive Tool
JSON
Go Struct
The JSON to Go Struct generator produces a typed Go struct from a JSON sample in one click. Nested objects become nested structs, arrays become slices with their element type inferred, and every field receives a matching json tag. Numbers are typed as int or float64 depending on the value.
Paste a JSON response from an API and copy the generated struct straight into your Go project. All conversion runs locally - the JSON sample never leaves your browser.