JSON to Go POJO Generator
Generate a starter model from JSON or XML locally.
Generate a starter model from JSON or XML locally.
Each object becomes an exported Go struct with json:"…" tags that keep the original key names, so encoding/json can unmarshal your data directly; optional fields get omitempty and nullable values become pointers. The generated code passes go vet. {"id":1,"tags":["x"]} gives Id int64 `json:"id"` and Tags []string `json:"tags"`.