JSON To Go Online
JSON to Go Struct Converter Online
JSON to Go Struct Converter is easy to use tool to convert JSON to Go Struct. Copy, Paste and Convert.
It offer tools for:
- Generate Go Struct from JSON string online.
- Generate Go Model from JSON string online.
- Generate Go Map from JSON string online.
How to use JSON To Go Struct Online?
- In the above textarea field write or paste your json string.
- Click 'JSON to Go' button to generate your Golang struct code.
- Click 'Copy' button to paste it into your clipboard, you can also download the result file.
JSON to Go Struct Example
Input json string:
{
"id":1,
"name":"John",
"age":24
}
Output Go struct result:
type Autogenerated struct {
ID int `json:"id"`
Name string `json:"name"`
Age int `json:"age"`
}