jmespath / jmespath/jmespath.py
Add a group_by function
Open
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
Use case:
Given
[
{"type":"large","ip":"10.0.0.1"},
{"type":"large","ip":"10.0.0.2"},
{"type":"small","ip":"10.0.0.3"}
]
I'd like to create:
{
"large": [{"type":"large","ip":"10.0.0.1"},{"type":"large","ip":"10.0.0.2"}],
"small":[{"type":"small","ip":"10.0.0.3"}]
}
Is there any query expression to do it?
Thanks very much.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.