go解析未知结构的json

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())
}
原文地址:https://www.cnblogs.com/c-x-a/p/13717009.html