Skip to content

parseJsonValue

function parseJsonValue<T>(value): T;

Defined in: src/internal/json.ts:101

Normalise a JSON column value: pg, pglite and Drizzle usually return json/jsonb already parsed; a string is parsed defensively (and returned as-is if it is not JSON).

Type Parameter
T
Parameter Type
value unknown

T