Why prefer YAML for configuration
A JSON config is dense and unforgiving: one missing comma invalidates the whole file, and every string needs quotes. YAML removes the punctuation entirely, so a deployment config reads like the structure it describes. It also supports comments, multi-line block scalars, anchors and environment-specific merges — none of which JSON can express. The trade-off is that YAML has a meaningful subset of edge cases where different parsers disagree, so round-tripping through a strict parser such as the one used here is worth doing before you commit.