JSONPath
JSONPath copied to clipboard
Filter Expression With Equals Number With Fraction
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