Skip to content

Filter Expression With Equals Null #47

@SoftCreatR

Description

@SoftCreatR

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==null)]

Result (Proposal A):

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions