GKRootWire
Security ICE Signs $2M Deal for Zero-Click Phone Hacking ToolSecurity Attackers Exploit Critical Elementor Pro Bug to Hijack WordPress SitesAI ChatGPT Goes Down, Serves 404 Errors to UsersAI ChatGPT and Codex Suffer Widespread OutageAI Google DeepMind's WeatherNext 3 Sharpens AI Weather ForecastingAI Google's New AI Weather Model Sharpens Storm ForecastsSecurity ICE Signs $2M Deal for Zero-Click Phone Hacking ToolSecurity Attackers Exploit Critical Elementor Pro Bug to Hijack WordPress SitesAI ChatGPT Goes Down, Serves 404 Errors to UsersAI ChatGPT and Codex Suffer Widespread OutageAI Google DeepMind's WeatherNext 3 Sharpens AI Weather ForecastingAI Google's New AI Weather Model Sharpens Storm Forecasts
Dev Tools

The Curious Dominance of JSON in Config Files

A developer digs into why JSON became the default choice for tool configuration despite its quirks.

A recent essay making the rounds on Hacker News examines why so many developer tools default to JSON for their configuration files, even though formats like YAML or TOML are often better suited for human editing. The piece argues that JSON's ubiquity comes down to practicality: it's already built into virtually every language's standard library, has a dead-simple grammar, and avoids the ambiguity pitfalls that have plagued YAML (like the infamous Norway problem, where 'no' gets parsed as false).

The tradeoff is readability. JSON lacks comments, requires strict quoting, and punishes trailing commas - all friction points for humans hand-editing config files, even though machines don't care.

Commenters on the discussion thread pushed back with their own favorites, from JSON5 and TOML to plain env files, with no clear consensus emerging beyond 'it depends on your audience.'

Why it matters: Config format choices seem trivial until you're debugging a typo-induced outage at 2am. The debate highlights a real tension in tool design: optimizing for machine parsability versus human ergonomics, and why 'just use JSON' is often a lazy default rather than a deliberate choice.

Sources: Hacker News