Skip to content

JsonElement.CreateArrayBuilder Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonElement.Mutable.cs

CreateArrayBuilder(JsonWorkspace, int, int)

Creates an empty mutable array document builder.

public static JsonDocumentBuilder<JsonElement.Mutable> CreateArrayBuilder(JsonWorkspace workspace, int estimatedMemberCount, int initialValueBufferSize)

Parameters

Name Type Description
workspace JsonWorkspace The JSON workspace to use for the document builder.
estimatedMemberCount int The estimated number of members in the document. (optional)
initialValueBufferSize int (optional)

Returns

JsonDocumentBuilder<JsonElement.Mutable>

A JSON document builder containing an empty array.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue