We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Give this code:
expr, err := jp.ParseString("$.vals[-3:]") if err != nil { panic(err) } result := expr.Get(map[string]interface{}{ "vals": []int{0, 10, 20, 30, 40, 50}, }) fmt.Printf("result: %v\n", result)
the result is: [50 40 30],but it should be [30 40 50],evaluated at https://jsonpath.com/
[50 40 30]
[30 40 50]
version: v1.17.5
The text was updated successfully, but these errors were encountered:
I'll get it fixed.
Sorry, something went wrong.
Did release v1.18.0 and later fix the issue?
No response, closing.
Sorry for the late reply. I have test it on v1.18.5,this have been fixed.
No branches or pull requests
Give this code:
the result is:
[50 40 30]
,but it should be[30 40 50]
,evaluated at https://jsonpath.com/version: v1.17.5
The text was updated successfully, but these errors were encountered: