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

jp not doing the same as the playground #50

Open
HaanJde opened this issue May 22, 2024 · 0 comments
Open

jp not doing the same as the playground #50

HaanJde opened this issue May 22, 2024 · 0 comments

Comments

@HaanJde
Copy link

HaanJde commented May 22, 2024

input:
{"z":{"a":{"b":"c"},"g":{"b":"d"},"h":{"b":"e"},"i":{"b":"f"}}}
expression:
z.*|[?b == `d`]
on the playground returns:
[ { "b": "d" } ]
but on Debian 12.5 jp version 0.2.1 with:
jp --filename z.json --expr-file z.jp
returns:
Error evaluating JMESPath expression: invalid character 'd' looking for beginning of value
with return code 1.

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

No branches or pull requests

1 participant