I\'m writing a websocket client in Go. I\'m receiving the following JSON from the server:
{\"args\":[{\"time\":\"2013-05-21 16:57:17\"}],\"name\":\"send:time\"
You may like to consider the package github.com/bitly/go-simplejson
See the doc: http://godoc.org/github.com/bitly/go-simplejson
Example:
time, err := json.Get("args").GetIndex(0).String("time") if err != nil { panic(err) } log.Println(time)