-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
The following codes run with no item returned:
jsondata := []byte({ "table1": [ { "age": 30, "name": "John" } ] })
var data interface{}
json.Unmarshal(jsondata, &data)
result, err := jmespath.Search("table1[?age > '25']", data)
After reading the go-jmespath codes, i found that in the file "github.com\jmespath\go-jmespath@v0.4.0\interpreter.go", line 52, need to consider a string to float convertion, otherwise, we cannot get the right search result.
Metadata
Metadata
Assignees
Labels
No labels