when parsing after a get request, how would I grab the 'personaname' and 'realname' values? the way I'm doing it with this struct
type Response struct {
personaname string
realname string
}
and this code
sb := string(res.Body())
var response []Response
json.Unmarshal([]byte(sb), &response)
isn't giving me anything. any tips? I'm not really familiar with json and how this kind of json works. (below is the response json)
{
"response": {
"players": [
{
"personaname": "alfred",
"realname": "alfred d"
},
{
"personaname": "EJ",
"realname": "Erik Johnson"
}
]
}
}