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

~ operator not supported in jsonpath tester #1379

Open
geirive opened this issue Aug 14, 2024 · 0 comments
Open

~ operator not supported in jsonpath tester #1379

geirive opened this issue Aug 14, 2024 · 0 comments

Comments

@geirive
Copy link

geirive commented Aug 14, 2024

Current behavior

Given
input json

{
  "objects": {
    "default": {
      "key": "value"
    },
    "O1": {
      "key": "value"
    },
    "O2": {
      "key": "value"
    }
  }
}

jsonpath: $.objects.*~

result is [], where it should be
expected (result in https://jsonpath.com/):

[
  "default",
  "O1",
  "O2"
]

How to reproduce it (as minimally and precisely as possible)

Open jsonpath tester and use the following values:
JSON:

{
  "objects": {
    "default": {
      "key": "value"
    },
    "O1": {
      "key": "value"
    },
    "O2": {
      "key": "value"
    }
  }
}

JSONPath: $.objects.*~

and observe that result is []

Expected behavior

The expected result is from https://jsonpath.com/:

[
  "default",
  "O1",
  "O2"
]

Screenshots

No response

Workaround

use https://jsonpath.com/

Affected platforms

Windows

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

Version 2.0-preview.5

Relevant Assets/Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant