handle errors from JSON.parse