Hacker News new | ask | show | jobs
by bicarbonato 31 days ago
AFAIK it's mostly because of floats. JSON doesn't support `NaN` and `infinity` for example.

Because they are common types, makes sense to precautionary have the error return.