{"Name":"Wednesday","Age":6,"Parents":["Gomez","Morticia"]}

ouput:Age is of a type I don't know how tu handle.
json numbers type  for go float64 type.
This commit is contained in:
picker
2013-05-08 23:09:57 +08:00
parent 86c996f5eb
commit 11d2597b73

View File

@@ -88,6 +88,8 @@ JSONJavascript Object Notation是一种轻量级的数据交换语言
fmt.Println(k, "is string", vv)
case int:
fmt.Println(k, "is int", vv)
case float64:
fmt.Println(k,"is float64",vv)
case []interface{}:
fmt.Println(k, "is an array:")
for i, u := range vv {