Skip to content

max() does not return negative Double #942

Open
@dmtch-github

Description

@dmtch-github

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions