dasel

Query and modify JSON, YAML, TOML, XML, and CSV data

brewmacoslinux
Try with needOr install directly
Source

About

JSON, YAML, TOML, XML, and CSV query and modification tool

Commands

dasel

Examples

Extract a value from JSON$ dasel -f data.json '.user.name'
Query YAML and output as JSON$ dasel -f config.yaml -o json '.database.host'
Update a value in a file$ dasel put string -f data.json '.user.email' 'new@example.com'