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 Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value |
unknown |
Returns
Section titled “Returns”T