Skip to content

@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

ParameterTypeDescription
thisunknownThe raw object
_keystringThe key
valueunknownThe value

Returns

unknown

the decoded value