jmespath / jmespath/go-jmespath

Does not support keys with colon (:) characters

Open
#53 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
621
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Given following JSON:
```json
{
"custom:groups": [
"foo",
"bar"
]
}
```

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: https://github.com/grafana/grafana/issues/22986

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.