JSON Formatter for Kubernetes Manifests
Quick Answer: Paste kubectl get -o json output to format Kubernetes resource definitions. Pod specs, Deployment configs, and Service manifests become much easier to read with proper indentation.
FAQ
How do I get Kubernetes resources as JSON?
Use kubectl get <resource> -o json. For example: kubectl get pods -o json, kubectl get deployment myapp -o json.
Should I use JSON or YAML for K8s manifests?
YAML is the convention for writing manifests. JSON is what kubectl outputs and what the API server uses internally. Both are valid.