JSON to YAML — Complete Guide
YAML (YAML Ain't Markup Language) is a human-friendly data serialization format. Unlike JSON, YAML uses indentation to represent structure, supports comments, and is the default configuration language for many DevOps tools.
Basic Type Mapping
JSON → YAML
{"name":"Alice","age":30,"active":true,"tags":["dev","ops"]}
name: Alice
age: 30
active: true
tags:
- dev
- ops
When to Use YAML
- Kubernetes manifests and Helm charts
- Docker Compose files
- GitHub Actions workflows
- Ansible playbooks
- Any config file humans need to read and edit