News for hackers. Stuff that matters.
Re:Parsing JSON is a Minefield by inimino on Wednesday October 26, 2016 @12:11PM (#12797662)
The JavaScript JSON parser throws an exception on invalid input. A benefit of this is that there is only one code path to handle any kind of failure, and another is that unhandled parse failures lead to a hard stop, which is a good default.

There are no comments on this comment yet.