JSON input
Paste JSON, optionally name the root type, then generate.
Your Go struct code will appear here.
Convert JSON into Go structs with json tags. Nested objects become nested structs, arrays become slices, and uncertain fields become pointers.
Paste JSON, optionally name the root type, then generate.
Your Go struct code will appear here.
Go field names use CamelCase while JSON keys are often snake_case, and the generated json tags bridge that gap. The tool infers int, float64, bool, string, slices, and nested structs, marking shaky fields as pointers.
Copy a real response from your API logs, generate the structs, and unmarshal directly into them. Compile time field names replace stringly typed map access, and the json tags keep the wire format intact.