Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: