YAML (YAML Ain't Markup Language)

構成ファイルによく使用される、人間が読みやすいデータシリアル化形式。

YAML(「YAML Ain't Markup Language」の再帰的頭字語)は、最小限で読みやすいように設計されています。タグを使用するXMLや中括弧を使用するJSONとは異なり、インデント(空白)を使用して構造を定義します。DockerKubernetesなどのDevOpsツールで人気があります。

        graph LR
  Center["YAML (YAML Ain't Markup Language)"]:::main
  Rel_xml["xml"]:::related -.-> Center
  click Rel_xml "/terms/xml"
  Rel_devops["devops"]:::related -.-> Center
  click Rel_devops "/terms/devops"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 5歳でもわかるように説明

Generated ELI5 content

🤓 Expert Deep Dive

Generated expert content

❓ よくある質問

What is YAML used for?

It's primarily used for configuration files and data exchange between languages.

Is YAML better than JSON?

YAML is more readable for humans and supports comments, but JSON is simpler and faster for machines to parse.

Does indentation matter in YAML?

Yes, correct indentation (spaces, not tabs) is critical for defining the structure.

📚 出典