export function safeParseJson(text: string): unknown | null { try { return JSON.parse(text) } catch { return null } }