Guide

JSON, YAML and XML: picking a format, and their sharp edges

Three formats that all claim to represent "structured data," designed a decade or two apart with different priorities — JSON for machines exchanging data, YAML for humans editing config by hand, XML for documents that need namespaces and schemas. Each design choice bought something and cost something, and most of the surprises show up exactly where you converted from one to another.