oq

Performant jq wrapper supporting JSON, YAML, XML, and other formats

brewmacoslinux
Try with needOr install directly
Source

About

Performant, and portable jq wrapper to support formats other than JSON

Commands

oq

Examples

Query YAML file and output as JSON$ oq '.metadata.name' config.yaml -o json
Extract and transform XML data with jq filters$ oq '.root.items[0]' data.xml
Convert between formats: YAML to JSON$ oq '.' input.yaml -o json > output.json