News for hackers. Stuff that matters.
Re:Parsing JSON Is a Minefield (2016) by nomel on Monday October 11, 2021 @02:57PM (#28831653)
> To the point that I don't understand why it was left out of JSON

I think you're forgetting the birthplace of JSON. Who deals with the concept of infinity and NaN in the context of web front ends?

Re:Parsing JSON Is a Minefield (2016) by lifthrasiir on Monday October 11, 2021 @03:27PM (#28832012)
Ranges are pretty common in APIs and both -Infinity and Infinity can naturally arise from one-sided ranges. Since they are absent in JSON, they are frequently replaced with null, ad-hoc sentinel values with uncoded assumptions (e.g. timestamps should be always positive) and missing fields.
Re:Parsing JSON Is a Minefield (2016) by stinos on Monday October 11, 2021 @03:35PM (#28832088)
I get that, but to go from "oh this won't be very common" to willingly "let's just leave this out" is something else. At least in my mind :) Or was it an oversight?
Re:Parsing JSON Is a Minefield (2016) by mst on Monday October 11, 2021 @04:23PM (#28832622)
I suspect it was a bet on worse is better.

Whether it was a good bet is debatable, but given Crockford's focus on "try and leave out as much as possible" I can certainly see it making sense at the time.