Clouds

json-formatter / free tool

JSON Formatter & YAML Converter

Validate JSON, pretty-print it, minify it, or turn it into clean YAML without round-tripping through an online converter. Paste output straight from kubectl or an API and read the structure instead of guessing at it.

772 characters30 keys18 values8 levels deepValid JSON
{
  "apiVersion": "apps/v1",
  "kind": "Deployment",
  "metadata": {
    "name": "api",
    "labels": {
      "app": "api",
      "tier": "backend"
    }
  },
  "spec": {
    "replicas": 3,
    "strategy": {
      "type": "RollingUpdate"
    },
    "template": {
      "spec": {
        "containers": [
          {
            "name": "api",
            "image": "registry.internal/api:1.4.2",
            "ports": [
              {
                "containerPort": 8080
              }
            ],
            "resources": {
              "requests": {
                "cpu": "250m",
                "memory": "256Mi"
              },
              "limits": {
                "cpu": "500m",
                "memory": "512Mi"
              }
            },
            "env": [
              {
                "name": "LOG_LEVEL",
                "value": "info"
              },
              {
                "name": "FEATURE_X",
                "value": "true"
              }
            ]
          }
        ]
      }
    }
  }
}

Why these numbers matter