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:

  1. Generate Go Struct from JSON string online.
  2. Generate Go Model from JSON string online.
  3. Generate Go Map from JSON string online.

How to use JSON To Go Struct Online?

  1. In the above textarea field write or paste your json string.
  2. Click 'JSON to Go' button to generate your Golang struct code.
  3. 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"`
}