cli json tools
jt is a cli wrapper around jq
and json-path
implementations for transforming json documents.
github.com/itchyny/gojq
github.com/ohler55/ojg
brew tap bilal-bhatti/homebrew-taps
brew install jt
or
go install github.com/bilal-bhatti/jt/cmd/jt@latest
get started
jt commands
jt help template
jt help apply
generate a jq based transformation template
echo '{"x":"y"}' | jt
cat examples/i.json | jt
apply template to input json
cat examples/i.json | jt apply -t examples/t.json
jt apply -t examples/t.json -i examples/i.json
jt apply -i examples/servers.json -t examples/template.json