Hi, I need to consume a stream of json objects. But unfortunately the json objects are separated by commas.
Is there any simple way I can convince the json.Decorder to skip the comma after each successful call to decode? My code looks like for { var a st err := dec.Decode(&a) if err == io.EOF { break } if err != nil { log.Fatalln(err) } log.Println(a) } https://play.golang.org/p/7lBhs0pXUx8 Unfortunately the json comes from an external service, so I can't stop it inserting unecessesary comments. Thanks for any ideas, Amnon -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e2a50435-aacd-4c13-8c79-2ce1f8dd3f8fo%40googlegroups.com.