whysogood
Search tools…
/
Images
PDF
Developer
Data
Calculators
Simple Mode
💻
Home
Data
YAML → JSON
YAML → JSON
Convert YAML files to JSON format.
Advertisement
You may also need
JSON → XML
Convert JSON to XML format.
JSON
JSON Formatter
Format, beautify, and validate JSON with syntax highlighting.
JSON
Share Feedback
Your ideas help us improve ✨
Priority
Could have
Your suggestion
0 chars
Send Feedback
Transpile
Sample
Indent:
2 spaces
4 spaces
Minify JSON
Sort Keys
Sync Scroll
Copy
Download
Clear
Full
YAML Source Input
69 lines
1306 chars
--- apiVersion: v1 kind: Namespace metadata: name: whysogood-production labels: environment: production managed-by: argocd --- apiVersion: v1 kind: ConfigMap metadata: name: app-config namespace: whysogood-production data: APP_ENV: production MAX_CONNECTIONS: "5000" CACHE_TTL_SECONDS: "3600" ENABLE_METRICS: "true" --- apiVersion: apps/v1 kind: Deployment metadata: name: api-service namespace: whysogood-production labels: app: api-service spec: replicas: 3 selector: matchLabels: app: api-service template: metadata: labels: app: api-service spec: containers: - name: web image: whysogood/api-service:v2.4.0 imagePullPolicy: IfNotPresent ports: - containerPort: 8080 name: http resources: requests: cpu: 250m memory: 512Mi limits: cpu: 1000m memory: 1Gi envFrom: - configMapRef: name: app-config --- apiVersion: v1 kind: Service metadata: name: api-service namespace: whysogood-production spec: type: ClusterIP selector: app: api-service ports: - port: 80 targetPort: 8080 protocol: TCP name: http
Converted JSON Output
107 lines
2240 chars
[ { "apiVersion": "v1", "kind": "Namespace", "metadata": { "name": "whysogood-production", "labels": { "environment": "production", "managed-by": "argocd" } } }, { "apiVersion": "v1", "kind": "ConfigMap", "metadata": { "name": "app-config", "namespace": "whysogood-production" }, "data": { "APP_ENV": "production", "MAX_CONNECTIONS": "5000", "CACHE_TTL_SECONDS": "3600", "ENABLE_METRICS": "true" } }, { "apiVersion": "apps/v1", "kind": "Deployment", "metadata": { "name": "api-service", "namespace": "whysogood-production", "labels": { "app": "api-service" } }, "spec": { "replicas": 3, "selector": { "matchLabels": { "app": "api-service" } }, "template": { "metadata": { "labels": { "app": "api-service" } }, "spec": { "containers": [ { "name": "web", "image": "whysogood/api-service:v2.4.0", "imagePullPolicy": "IfNotPresent", "ports": [ { "containerPort": 8080, "name": "http" } ], "resources": { "requests": { "cpu": "250m", "memory": "512Mi" }, "limits": { "cpu": "1000m", "memory": "1Gi" } }, "envFrom": [ { "configMapRef": { "name": "app-config" } } ] } ] } } } }, { "apiVersion": "v1", "kind": "Service", "metadata": { "name": "api-service", "namespace": "whysogood-production" }, "spec": { "type": "ClusterIP", "selector": { "app": "api-service" }, "ports": [ { "port": 80, "targetPort": 8080, "protocol": "TCP", "name": "http" } ] } } ]