@technobuddha > library > JSON > Serialization
Function: reviver()
ts
function reviver(
this: unknown,
_key: string,
value: unknown): unknown;Defined in: reviver.ts:12
Used with JSON.parse to decode objected encoded by replacer
Parameters
| Parameter | Type | Description |
|---|---|---|
this | unknown | The raw object |
_key | string | The key |
value | unknown | The value |
Returns
unknown
the decoded value