Pipe kubectl JSON into jq for flexible filtering.
Section: Go Templates, Custom Columns, and jq-Friendly Patterns
Pretty JSON with jq
bash
bash
kubectl get deployment web -n payments -o json | jqExplanation
Pipe kubectl JSON into jq for flexible filtering.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Go Templates, Custom Columns, and jq-Friendly Patterns