• Asynchronous version with worker thread support for large datasets

    Parameters

    • data: any

      Data to save as JSON

    • filePath: string

      Path to save the JSON file

    • options: SaveAsJsonOptions & {
          useWorkers?: boolean;
          workerCount?: number;
          chunkSize?: number;
          onProgress?: (
              _progress: { processed: number; total: number; percentage: number },
          ) => void;
      } = {}

      Configuration options with worker support

    Returns Promise<void>

    Promise