Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Expression With Equals #45

Open
SoftCreatR opened this issue Nov 3, 2020 · 0 comments
Open

Filter Expression With Equals #45

SoftCreatR opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@SoftCreatR
Copy link
Owner

Test Data:

[
   {
      "key":0
   },
   {
      "key":42
   },
   {
      "key":-1
   },
   {
      "key":1
   },
   {
      "key":41
   },
   {
      "key":43
   },
   {
      "key":42.0001
   },
   {
      "key":41.9999
   },
   {
      "key":100
   },
   {
      "key":"some"
   },
   {
      "key":"42"
   },
   {
      "key":null
   },
   {
      "key":420
   },
   {
      "key":""
   },
   {
      "key":{
         
      }
   },
   {
      "key":[
         
      ]
   },
   {
      "key":[
         42
      ]
   },
   {
      "key":{
         "key":42
      }
   },
   {
      "key":{
         "some":42
      }
   },
   {
      "some":"value"
   }
]

Selector:

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

Result (Proposal A):

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

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

@SoftCreatR SoftCreatR added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant