GKRootWire
Security 153 Million Driver's Licenses Reportedly Leaked in Massive BreachSecurity Palo Alto Networks Reportedly Pays $500M for AI IT Automation Startup ConsoleDev Tools Wasmi v2.0 Pushes WebAssembly Interpreters to New Speed LimitsDev Tools How to Reverse Engineer Unknown File Formats with ImHexDev Tools The Original Microsoft Source Code: Altair BASIC From 1975 ResurfacesSecurity Attackers Exploit Sangoma Switchvox Bug to Plant Reverse ShellsSecurity 153 Million Driver's Licenses Reportedly Leaked in Massive BreachSecurity Palo Alto Networks Reportedly Pays $500M for AI IT Automation Startup ConsoleDev Tools Wasmi v2.0 Pushes WebAssembly Interpreters to New Speed LimitsDev Tools How to Reverse Engineer Unknown File Formats with ImHexDev Tools The Original Microsoft Source Code: Altair BASIC From 1975 ResurfacesSecurity Attackers Exploit Sangoma Switchvox Bug to Plant Reverse Shells
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