Library API
    Preparing search index...

    Function serverReadJSON

    • Reads and parses a JSON file from the server storage.

      Type Parameters

      • T = any

      Parameters

      • filePath: string

        Relative path inside the sandboxed root

      • Optionalfallback: T

        Default fallback if file does not exist or is invalid

      • OptionalrootDir: string

        Optional root directory override

      Returns Promise<T | null>