{"movies": [{"name": "Inception","rating": 8.8,"genres": ["Action","Adventure","Sci-Fi"]},{"name": "Godfather","rating": 9.2,"genres": ["Crime","Drama"]},...]}I created a movie struct to represent each movietype Movie struct { name string rating float64 genres []string }I have parsed the file like thisvar raw interface{} data, _ := ioutil.ReadFile(filename) _ = json.Unmarshal(data, &raw)so far everything is fine. Please tell me how access each movie and iterate using a loop. When I try to do that I am getting some type related error.
OK great thanks Caleb for the info
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/u3BjQZsyVpg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.