Closed cryptomatictrader closed 2 years ago
While using Get
please use From
method to select a start point
const json = `{"name":{"first":"Tom","last":"Hanks"},"age":61}`
jq := gojsonq.New().FromString(json)
fmt.Printf("%#v\n", jq.From("name").Get())
I get empty result in the following code but it works fine if I use "FIND" instead of "SELECT". Any idea why?
See this in Go Playground