WebUI X Documentation
    Preparing search index...
    • Reads and parses a JSON file from the specified path.

      Type Parameters

      • T

        The expected type of the parsed JSON object.

      Parameters

      • path: string

        The file path to read.

      • Optionalencoding: string

        The text encoding to use (default: 'utf-8').

      • Optionalsignal: AbortSignal

        Optional AbortSignal to cancel the operation.

      Returns Promise<T>

      A promise that resolves to the parsed JSON object of type T.