请问如何解析以下json字符串, 并获取from的值
["Msg",{"cmd":"ack","id":"9F9C8FDA574B9933BD183213E13B47E7","ack":1,"from":"tom","to":"ben","t":1552033689}]
更多评论
处理一下,直接转成map就行,n := make(map[string]interface{});json.Unmarshal(j, &n)
再获取from
#2