jmespath / jmespath/jmespath.site

How to find all by key?

Open
#62 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
61
Forks
61
PR merge metrics
No merged PRs in 30d

Description

Could you please help me how to **find all** `condition` nodes recursively?

![image](https://user-images.githubusercontent.com/3842386/54748513-881bfc80-4bda-11e9-80b3-ca2e0da49888.png)

JSON example:
```json
{
"WHERE": {
"AND": [
{
"condition": {
"AND": [
{
"condition": {
"name": "cond1"
}
},
{
"condition": {
"name": "cond2"
}
}
],
"name": "cond-group"
}
},
{
"condition": {
"name": "cond3"
}
},
{
"condition": {
"name": "cond4"
}
}
]
}
}
```

I would like to find all `conditions` no matter where it is. Probably it should looks like `*[?condition]` or `values(*)[?condition]`(non-rooted expressions).

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.