json parse

// User ...
type User struct {
    Name string `json:"name"`
    Age  int    `json:"age"`
}

func main() {
    jsonBlob := []byte(`{"name":"yohei","age":"10"}`)
    user := User{}
    json.Unmarshal(jsonBlob, &user)
    fmt.Println(user.Name)
}