I have the following json string array
data := []string{
`{"STATUS":"UP"}`,
`{"STATUS":"UP"}`,
}
and the following struct corresponding to it
type Status struct {
STATUS string `json:"STATUS"`
}
How do I unmarshal data into an array of Status struct ?