JSON to Go
Generate Go structs with JSON tags from any JSON sample. Free, private, runs in your browser.
Pointers for optional
omitempty tag
Go output
type Root struct {
Id float64 `json:"id"`
Name string `json:"name"`
Tags []string `json:"tags"`
Profile Profile `json:"profile"`
}
type Profile struct {
Age float64 `json:"age"`
Vip bool `json:"vip"`
LastLogin interface{} `json:"lastLogin"`
}