JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Filter Expression With Equals Number With Fraction

Open SoftCreatR opened this issue 5 years ago • 0 comments

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

SoftCreatR avatar Nov 03 '20 14:11 SoftCreatR