Show more useful debug output when JSON cannot be parsed