JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Union With Filter

Open SoftCreatR opened this issue 5 years ago • 0 comments

Test Data:

[
   {
      "key":1
   },
   {
      "key":8
   },
   {
      "key":3
   },
   {
      "key":10
   },
   {
      "key":7
   },
   {
      "key":2
   },
   {
      "key":6
   },
   {
      "key":4
   }
]

Selector:

$[?(@.key<3),?(@.key>6)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[{"key":1},{"key":2},{"key":8},{"key":10},{"key":7}]'
+'[{"key":1},{"key":2}]'

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

SoftCreatR avatar Nov 03 '20 14:11 SoftCreatR