Generate a Go struct with json tags from a JSON sample. JSON to Go Struct is a free online tool from the ToolsRift JSON Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
string→string, whole numbers→int, decimals→float64, true/false→bool, null→interface{}, arrays→[]T, and objects→nested structs.
It is a strong starting point. Review numeric widths, optional fields, and pointer usage — inference is intentionally conservative.
Each nested object gets its own named struct type, referenced by field, with matching json tags for the original keys.