JSON to Go
Paste JSON and get ready-to-use Go structs with json tags. Nested objects become their own structs and the original field names are preserved in the tags. Everything runs locally in your browser.
Frequently asked questions
Does my JSON get uploaded?
No. Structs are generated entirely in your browser — nothing is sent to a server.
Why are numbers typed as float64?
JSON has a single number type, so every numeric field maps to float64. Change fields to int where you know the value is an integer.
What are the json tags for?
The json:"field" tags let encoding/json marshal and unmarshal using the exact original key names, even though Go struct fields must be exported (capitalized).