Post

Conversation

Douglas Crockford は JSON の設計原理として "being at the intersection of most programming languages and most data types" としていて、 "The representation of numbers is completely independent of problematic number formats like IEEE 754" とまで書いているので、本人の意図通りですね
Quote
👻 道化師 🃏
@wraith13
JSON で NaN や Inf を扱えないのは仕様バグだと思ってる。アレは流石に。ちゃんと型を壊さないように守ってても、 number の実態が NaN や Inf だと JSON.stringify 通した時に null になってしまうとか間違ってるんよ。