logoalt Hacker News

DrScientist12/09/20241 replyview on HN

This may be heretical but surely the problem isn't lack of comments et al in JSON, rather that people try to use JSON for everything, when it was designed to be a text representation of javascript objects?


Replies

Sankozi12/09/2024

If it was really designed for representing JS objects then it was really bad job.

Neither JSON supports JS objects (lack of NaN) nor JS supports JSON (lack of arbitrary precision decimals).

show 1 reply