Gracefully handle invalid JSON files