Skip to content

IMutableJsonDocument.InsertSimpleProperty Method

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IMutableJsonDocument.cs

InsertSimpleProperty(int, int, int, ReadOnlySpan<byte>, JsonTokenType, int, int)

Inserts a property name and a single simple value row directly, bypassing ComplexValueBuilder.

public abstract void InsertSimpleProperty(int complexObjectStartIndex, int targetIndex, int memberCount, ReadOnlySpan<byte> propertyName, JsonTokenType valueTokenType, int valueLocation, int valueSizeOrLength)

Parameters

Name Type Description
complexObjectStartIndex int The start index of the complex object.
targetIndex int The index at which to insert.
memberCount int The number of members to insert.
propertyName ReadOnlySpan<byte> The UTF-8 property name to escape and store.
valueTokenType JsonTokenType The token type of the value.
valueLocation int The value location in the document's backing store.
valueSizeOrLength int The size/length/unescaping flag for the value row.

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