Skip to content

ParsedJsonDocument<T>.WriteTo Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: ParsedJsonDocument.cs

WriteTo(Utf8JsonWriter)

Write the document into the provided writer as a JSON value.

public void WriteTo(Utf8JsonWriter writer)

Parameters

Name Type Description
writer Utf8JsonWriter The writer.

Exceptions

Exception Description
ArgumentNullException The writer parameter is null.
InvalidOperationException This RootElement's ValueKind would result in an invalid JSON.
ObjectDisposedException The parent JsonDocument has been disposed.

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