2018-01-08 jsoniter 举例 index.goview raw1234567891011121314151617181920212223package mainimport "github.com/json-iterator/go"import "fmt"func main() { // plain map // testMap := map[string]interface{}{ // "a": 123, // "b": []int{123}, // "c": []int{456}, // } var json = jsoniter.ConfigCompatibleWithStandardLibrary testStr := `{"a":1,"b":[1,2],"c":[3,4], "d": {"d0": 1}}` var m map[string]interface{} json.Unmarshal([]byte(testStr), &m) for k, v := range m { fmt.Println(k, "=", v) }} Newer 修正 Chrome 50 中关于 Date.parse 的问题 Older meltdown-about-uxss-in-chrome