package main import "github.com/tidwall/gjson" const json = `{"name":{"first":"Janet","last":"Prichard"},"age":47}` func main() { value := gjson.Get(json, "name.last") println(value.String()) }
go解析未知结构的json
原文:https://www.cnblogs.com/c-x-a/p/13717009.html