export function parseJson(input: string) { try { return JSON.parse(input) as T } catch { return null } }