jmespath / jmespath/jmespath.site

Example on filtering nested non-list objects

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

Description

There are a lot of examples on how to filter lists, but that doesn't seem to work on non-list objects.
Example:

``` json
{"a": 1, "b": {"c" : 100}}
```

If I want to filter by `c == 100` this will not work `b[?c==100]`. What should be used instead? Also how to filter by `a == 1`?

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.