-
Notifications
You must be signed in to change notification settings - Fork 85
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
Filters not implemented #8
Comments
change your import statements to use parse from the extensions
|
Is this documented somewhere other than here? |
After pulling my hair for an hour, I found this. NOW jsonpath works. |
Is there a solution for this when using the CLI? |
I tried changing the import in [
{
"name": "click",
"version": "7.1.1"
},
{
"name": "decorator",
"version": "4.4.2"
},
{
"name": "jsonpath-ng",
"version": "1.5.1"
},
{
"name": "pip",
"version": "20.1.1"
},
{
"name": "pip-tools",
"version": "5.2.1"
},
{
"name": "ply",
"version": "3.11"
},
{
"name": "setuptools",
"version": "41.2.0"
},
{
"name": "six",
"version": "1.15.0"
}
] |
That would be a good annotation in the documentation ;-) |
@alexander-jacob 👍👍👍 Thanks a lot. when importing |
still not working today. |
Even with the |
I'm laughing so hard right now. This is where all the great minds have converged only to realize it's the library, and not their code. For me, it would have been quicker to not use this JSONPath implementation due to the time I've wasted. So much for being compliant. |
Mmmmm this would explain a lot, I wondered why my |
Hi, thanks for your work on making a standards compliant jsonpath library for Python.
I think this library (and python-jsonpath-rw) might have a bug or are missing this part of the spec:
I'm trying to filter an array by a string. My query, `$.phoneNumbers[?(@.type=='home')].number, works fine on the jsonpath.com testing tool, but I can't get it working using jsonpath-ng. It fails to parse the query, complaining about the question mark.
Example code:
Exception:
JsonPathLexerError: Error on line 1, col 15: Unexpected character: ?
I'm trying this with jsonpath-ng>=1.4.3
Any ideas? Am I doing something wrong?
The text was updated successfully, but these errors were encountered: