Tomás Rebelo

Encodings — Base64, JSON, and what survives a round trip

Tomás covers the formats data passes through on its way somewhere else: Base64 and its URL-safe variant, JSON and the places where two parsers reading the same bytes disagree.

The recurring subject is the round trip. Encoding is easy to get right in one direction and wrong in the other, and most of the bugs worth writing about live in the gap: a plus sign that arrives as a space, a sixty-four-bit integer that comes back short, a duplicate key that one parser keeps and another drops.

Pages under this byline usually carry the outputs of the same input through several languages side by side, because the interesting part is rarely what one implementation does. It is where they stop agreeing.

What this byline is strict about

12 posts under this byline

All base64 guides →All json guides →

Withuse publishes under three bylines, listed on the authors page. Each one owns a beat and is answerable for it; none of them claims an employer, a degree or a job history, because none of that is what makes a page on this site worth trusting. What does is on the about page: every claim is run before it is written, the runtime version is named, and corrections are dated and kept.