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 Value #57

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

Filter Expression With Value #57

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:

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

Selector:

$[?(@.key)]

Result (Proposal A):

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

https://cburgmer.github.io/json-path-comparison/results/filter_expression_with_value.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