Skip to content

Filter Expression With Equals Number With Fraction #48

@SoftCreatR

Description

@SoftCreatR

Test Data:

[
   {
      "key":-12.3
   },
   {
      "key":-0.123
   },
   {
      "key":-12
   },
   {
      "key":12.3
   },
   {
      "key":2
   },
   {
      "key":"-0.123e2"
   }
]

Selector:

$[?(@.key==-0.123e2)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[{"key":-12.3}]'
+'[{"key":-12.3},{"key":"-0.123e2"}]'

https://cburgmer.github.io/json-path-comparison/results/filter_expression_with_equals_number_with_fraction.html

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions