AggregateAsJsonAsync

Combine the specified Data into JSON

For a guide on how to use aggregation please look at: Using Aggregates

Aggregate As Json Async

Example in C#

// Returns: IEnumerable<String>
var item = await client.AggregateAsJsonAsync(FolderInfo folder, String collectionName, BsonDocument operations, Int32 queryTimeout, Boolean jsonStrict, Boolean includeGlobal, String hints);