import type { JsonValue } from "@/shared/web"; export async function safeReadJson(response: Response): Promise { try { return (await response.json()) as JsonValue; } catch { return null; } }