Skip to content
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

max() does not return negative Double #942

Open
dmtch-github opened this issue Jul 3, 2023 · 0 comments
Open

max() does not return negative Double #942

dmtch-github opened this issue Jul 3, 2023 · 0 comments

Comments

@dmtch-github
Copy link

dmtch-github commented Jul 3, 2023

Hello
My JSON

{
  "idTitle": "26a",
  "amount": -719.92
}

I want get 'amount' as Double, when 'idTitle' == '26a'

My Path Expression
$.max($.[?(@.idTitle == '26a')].amount)

Expected result
-719.92

Real result
5e-324

Why jsonPath return wrong result?
How may I get single Double value (not List)?

Java, com.jayway.jsonpath version 2.8.0

Thanx

pragasekar added a commit to pragasekar/JsonPath that referenced this issue Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant