Object to Go struct
Input
{"id":1,"name":"demo"}
Output
type Root struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
Generate Go structs with JSON tags from JSON data in your browser.
Generate Go structs with JSON tags from objects, arrays, and nested JSON fields.
{"id":1,"name":"demo"}
type Root struct {
Id int64 `json:"id"`
Name string `json:"name"`
}
Conversion runs locally in your browser and does not upload JSON.