YAML ↔ JSON
Convert between YAML and JSON formats
Input (YAML)
Output (JSON)
Examples
| Mode | Input | Apply |
|---|---|---|
| YAML → JSON | name: Alice age: 30 active: true tags: - dev - admin | |
| k8s config | apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: replicas: 3 | |
| JSON → YAML | {"name":"Alice","age":30,"roles":["dev","admin"]} | |
| JSON → YAML (nested) | {"server":{"host":"localhost","port":8080},"debug":true} |