Skip to content

Filter Expression With Equals String #49

@SoftCreatR

Description

@SoftCreatR

Test Data:

[
   {
      "key":"some"
   },
   {
      "key":"value"
   },
   {
      "key":null
   },
   {
      "key":0
   },
   {
      "key":1
   },
   {
      "key":-1
   },
   {
      "key":""
   },
   {
      "key":{
         
      }
   },
   {
      "key":[
         
      ]
   },
   {
      "key":"valuemore"
   },
   {
      "key":"morevalue"
   },
   {
      "key":[
         "value"
      ]
   },
   {
      "key":{
         "some":"value"
      }
   },
   {
      "key":{
         "key":"value"
      }
   },
   {
      "some":"value"
   }
]

Selector:

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

Result (Proposal A):

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

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions