JSON to Go Struct

Generate Go structs with the right field types and json: tags from any JSON sample. Nested objects become named nested types. Useful for scaffolding API client types when you have an example response but no schema.

How to use the JSON to Go Struct

Paste JSON. Output uses canonical Go field naming (PascalCase) with json: tags matching the original keys. Pointers aren't generated for optional fields — adjust manually if you need nullable semantics.