export const parseJson = (json: string): T | null => { try { return JSON.parse(json); } catch (e) { return null; } };