Make sure the exception has some level of parity with the error from json2.js.