Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.35 KB

TODO.rst

File metadata and controls

40 lines (26 loc) · 1.35 KB

Libs

Notes

go install github.com/itchyny/gojq/cmd/gojq@latest

cat foo.yaml | gojq --yaml-input '.' > foo.json   # convert YAML to JSON
cat foo.json | gojq --yaml-output '.' > foo.yaml  # convert JSON to YAML

cat foo.json | gojq -r tostring > minified.json   # minify JSON
cat minified.json | gojq > foo.json               # unminify JSON
cat radios/stubs.yaml 1.yaml 2.yaml ... n.yaml | gojq --yaml-input -s -f radios/merge.jq

Piping