{"version":"1.0","type":"rich","title":"Parsing JSON in a request body with Go","description":"This example demonstrates a minimal HTTP server in Go that parses JSON from a request body and returns it as a response. The code reads the incoming request with `ioutil.ReadAll`, decodes it into a `Message` struct using `encoding/json`’s `json.Unmarshal`, then re-encodes the struct with `json.Marshal` before writing the result back with `w.Write`. The server uses the standard `net/http` package, registering a handler on the root path with `http.HandleFunc` and listening on port 8000 via `http.ListenAndServe`. It shows a round-trip JSON workflow without any external libraries or rendering.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0834dfd216676b8ed6476ad499c69a40?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}