JSONCodec
@wuespace/telestion / index / JSONCodec
JSONCodec<
T
>(reviver
?):Codec
<T
>
Returns a Codec for encoding JavaScript object to JSON and serialize them to an Uint8Array, and conversely, from an Uint8Array to JSON to a JavaScript Object.
Type parameters¶
• T = unknown
Parameters¶
• reviver?: (this
, key
, value
) => unknown
Returns¶
Codec
<T
>