`JSON.parse` can throw, wrap it in a try/catch, and return null or something if it fails.