Closed Bellisario closed 1 year ago
@Bellisario
You lost ""
between tag_name
package main
import (
"fmt"
"github.com/tidwall/gjson"
)
func main() {
var latestRaw = gjson.Get("{\"tag_name\": \"1.1.0\"}", "tag_name").String()
fmt.Println(latestRaw)
}
go run xxx.go
1.1.0
@spike014 thanks! I didn't realize I was missing double quotes... :disappointed: I'll close the issue!
I was trying to parse from latest GitHub releases, but I had a problem parsing "tag_name". Is this supported? Am I doing something wrong?
Here is a piece of what I'm trying to do: