-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter of comparison works wrong #90
Comments
I am running into the same issue trying to compare against dates. It works fine in the online playground but not with the Go package. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: