json parse error now logs to debug.log