m :=map[string]string{"type":"10","msg":"hello."} mjson,_ :=json.Marshal(m) mString :=string(mjson) fmt.Printf("print mString:%s",mString)
posted @
2018-04-14 10:49
ecake
阅读(27757)
评论(0)
编辑
收藏
举报
m :=map[string]string{"type":"10","msg":"hello."} mjson,_ :=json.Marshal(m) mString :=string(mjson) fmt.Printf("print mString:%s",mString)