Integrate an API
Create nested structs and JSON tags from a representative response body.
Generate tool
Generate idiomatic Go structs with JSON tags from sample JSON directly in your browser.
Your input and result are not sent to JSON Hearth or stored on a server.
When to use it
Generate Go structs as a starting point for decoding API responses, events and configuration with the standard encoding/json package.
Create nested structs and JSON tags from a representative response body.
Turn sample messages into types for consumers, handlers and tests.
Get a compilable-looking starting structure before refining names, pointers and custom types.
Important limitations
Common questions
Examples do not reveal every possible value, nullability rule or domain-specific type such as time.Time.
Yes. Generated fields include tags that preserve the original JSON property names.