JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Filter Expression With Equals With Root Reference

Open SoftCreatR opened this issue 5 years ago • 0 comments

Test Data:

{
   "value":42,
   "items":[
      {
         "key":10
      },
      {
         "key":42
      },
      {
         "key":50
      }
   ]
}

Selector:

$.items[?(@.key==$.value)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[{"key":42}]'
+'[]'

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

SoftCreatR avatar Nov 03 '20 14:11 SoftCreatR