Function JSONCodec

  • 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


    • Optional reviver: ((this: unknown, key: string, value: unknown) => unknown)
        • (this: unknown, key: string, value: unknown): unknown
        • Parameters

          • this: unknown
          • key: string
          • value: unknown

          Returns unknown

    Returns Codec<T>

Generated using TypeDoc