-
Notifications
You must be signed in to change notification settings - Fork 90
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
Does not support keys with colon (:) characters #53
Comments
this is similar to #58 |
For anyone else stumbling on this issue the following worked for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given following JSON:
And the following JMESPath expression:
contains(custom:groups[*], 'foo') && 'Admin' || 'Editor'
Expected expression to evaluate to "Admin".
Also tried the following expressions without success:
contains("custom:groups[*]", 'foo') && 'Admin' || 'Editor'
contains('"custom:groups[*]"', 'foo') && 'Admin' || 'Editor'
Doesn't work at https://jmespath.org/ either, but maybe this use case is not supported?
Ref: grafana/grafana#22986
The text was updated successfully, but these errors were encountered: