Skip to content

JsonElement.CreateObjectBuilder Method

Definition

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

CreateObjectBuilder(JsonWorkspace, int, int)

Creates an empty mutable object document builder.

public static JsonDocumentBuilder<JsonElement.Mutable> CreateObjectBuilder(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 object.

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