Hacker News new | ask | show | jobs
by fooyc 3333 days ago
The browser may disclose part of the JSON content in a "parse error" error message. A window.onerror handler could catch this message.

I believe that some browsers used to do that some times ago.