JSON to Go Struct
Instantly convert JSON objects into Go (Golang) struct definitions with proper types and JSON tags.
type Autogenerated struct {
Id int `json:"id"`
Name string `json:"name"`
Username string `json:"username"`
Email string `json:"email"`
Address Address `json:"address"`
Phone string `json:"phone"`
Website string `json:"website"`
Company Company `json:"company"`
}
type Address struct {
Street string `json:"street"`
Suite string `json:"suite"`
City string `json:"city"`
Zipcode string `json:"zipcode"`
Geo Geo `json:"geo"`
}
type Geo struct {
Lat string `json:"lat"`
Lng string `json:"lng"`
}
type Company struct {
Name string `json:"name"`
Catchphrase string `json:"catchPhrase"`
Bs string `json:"bs"`
}
Clean Types
Intelligently maps primitive types like strings, integers, floats, and booleans to their Go equivalents.
Recursive Logic
Handles deeply nested objects and arrays, generating separate structs for nested entities automatically.