@cnri/json-streaming
    Preparing search index...

    Function jsonParse

    • Parses JSON data from various input sources using a streaming approach.

      This function provides a way to parse JSON content from different input types without loading the entire content into memory at once. It uses the JsonReader class internally to perform the streaming parsing.

      This function is mostly used for testing.

      Parameters

      • input:
            | string
            | ArrayBuffer
            | ArrayBufferView<ArrayBuffer>
            | Blob
            | ReadableStream<Uint8Array<ArrayBuffer>>

        The JSON data to parse

      Returns Promise<any>

      A Promise that resolves to the parsed JSON value