JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Filter Expression With Equals False

Open SoftCreatR opened this issue 5 years ago • 0 comments

Test Data:

[
   {
      "some":"some value"
   },
   {
      "key":true
   },
   {
      "key":false
   },
   {
      "key":null
   },
   {
      "key":"value"
   },
   {
      "key":""
   },
   {
      "key":0
   },
   {
      "key":1
   },
   {
      "key":-1
   },
   {
      "key":42
   },
   {
      "key":{
         
      }
   },
   {
      "key":[
         
      ]
   }
]

Selector:

$[?(@.key==false)]

Result (Proposal A):

--- Expected
+++ Actual
@@ @@
-'[{"key":false}]'
+'[{"key":false},{"key":null},{"key":""},{"key":0},{"key":[]},{"key":[]}]'

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

SoftCreatR avatar Nov 03 '20 14:11 SoftCreatR