4e2820e
1
2
3
4
5
6
7
8
export function safeParse(str: string) { try { return JSON.parse(str); } catch { return null; } }