golang之Json编码解码
编码json.Marshal()func Marshal(v interface{}) ([]byte, error)解码json.Unmarshal()func Unmarshal(data []byte, v interface{}) errorjson TO struct在线转译 :http://json2struct.mervine.net/json to go滴滴团队研发(据说比官方快6倍):https://github.com/json-iterator/goWarning:Json转结构体,或结构体转Json,结构体首字母必须大写!!! package main import ( "fmt" "encoding/json" ) func main() { type Stude...阅读全文