glom

Declarative object transformer and formatter for nested data

brewmacoslinux
Try with needOr install directly
Source

About

Declarative object transformer and formatter, for conglomerating nested data

Commands

glom

Examples

Extract nested value from a dictionary$ glom '{"user": {"name": "John", "age": 30}}' user.name
Transform and filter a list of objects$ glom '{"items": [{"id": 1, "value": "a"}, {"id": 2, "value": "b"}]}' items.[id,value]
Convert JSON data with path-based extraction$ glom -f data.json 'path.to.nested.field'