Dump a resource as JSON.
Section: Inspection and Deep Queries
Get JSON output
bash
bash
kubectl get deployment web -n payments -o jsonExplanation
Dump a resource as JSON.
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 Inspection and Deep Queries