DevFormatLab

Blog

Practical guides for developers

CSV Encoding Nightmares: UTF-8, Shift-JIS, and Mojibake

How to recognise the four kinds of broken-CSV encoding in the wild, decode each of them, and ship data between Japanese accounting systems, Chinese logistics exports, and your UTF-8 warehouse.

CSVEncodingShift-JIS
9 min read

How to Validate and Debug JSON Like a Pro

A practitioner's workflow for finding the exact byte that breaks a JSON parser, with reproducible recipes for the eight error categories you will actually meet in production.

JSONDebuggingWorkflow
7 min read

JSON Formatter Hidden Features You Probably Missed

Six under-used capabilities of our JSON Formatter — hover time fields, node-level copy, tree search, local history, JSON Patch export — and when each one pays for itself.

JSONProductivityHidden features
6 min read

Regex Performance and Catastrophic Backtracking

How a 50-millisecond regex turns into a 60-second denial of service, why the cure is not 'add a timeout', and five concrete patterns that are immune to catastrophic backtracking.

RegexPerformanceReDoS
9 min read

Understanding JWT Tokens — A Practical Guide

Anatomy of a JWT, what each claim means, why HS256 vs RS256 matters, and how to debug the four common failure modes — with concrete recipes using the JWT Decoder on this site.

JWTAuthenticationSecurity
8 min read

YAML vs JSON vs TOML — When to Use Which

A practical decision guide for picking a serialisation format — by reader, by writer, by what tooling you already have, and by who will be editing it in production.

YAMLJSONTOML
8 min read

Common JSON Errors and How to Fix Them

Learn how to diagnose and fix the most common JSON parsing errors: Unexpected token, Unterminated string, Unexpected end, and more.

JSONDebuggingJavaScript
8 min read