JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Filter Expression With Bracket Notation With -1

Open SoftCreatR opened this issue 5 years ago • 0 comments

Test Data:

[
   [
      2,
      3
   ],
   [
      "a"
   ],
   [
      0,
      2
   ],
   [
      2
   ]
]

Selector:

$[?(@[-1]==2)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[[0,2],[2]]'
+'[]'

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

SoftCreatR avatar Nov 03 '20 13:11 SoftCreatR