logoalt Hacker News

bicarbonato • yesterday at 8:20 PM • 0 replies • view on HN

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.