Series

How Data Formats Works

How We Serialize Structured Data

Every program eventually needs to write structured data somewhere a human or another program can read it back: a config file, an API response, a message on a queue, a cache entry on disk. The format you choose decides whether that data is human-editable, compact on the wire, self-describing, fast to parse, or safe against hostile input — and no single format is best at all of those at once.

This series takes the serialization formats developers actually use — JSON, YAML, TOML, Protobuf, MessagePack, and friends — and pulls each one apart: its data model, its syntax and internals, where it shines, and where it quietly bites. Each article assumes you're already comfortable with at least one other format and builds from there.

How to read this series: Each article is grounded in a format you likely already know. Start with YAML if you know JSON well — it reframes JSON as the reference point and builds outward from there.
  1. 001
    Advanced YAML for People Who Know JSON

    A superset that giveth whitespace and taketh away your sanity

    29 min