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

Recursive traversal? #112

Closed
Granitosaurus opened this issue Oct 7, 2016 · 2 comments
Closed

Recursive traversal? #112

Granitosaurus opened this issue Oct 7, 2016 · 2 comments

Comments

@Granitosaurus
Copy link

Granitosaurus commented Oct 7, 2016

Is it possible to recursively traverse the json tree with jmespath?

for example:

{
    "one": {
        "two": {
            "three": [{
                "four": {
                    "name": "four1_name"
                }
            }, {
                "four": {
                    "name": "four2_name"
                }
            }]
        }
    }
}

Parsing it with something like ..four.name instead of one.two.three[].four.name?
For example how xpath would allow you to //four/name/text() instead of one/two/three/four/name/text()

Is that possible to do with Jmespath?

@Granitosaurus
Copy link
Author

Oh this looks like a duplicate of #110

@springcomp
Copy link

@Granitosaurus We want to propose this feature to JMESPath and will include this in the next iteration for JMESPath Community.

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

2 participants