Skip to content

Utf8JsonWriter.WriteNullValue Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonWriter.WriteValues.Literal.cs

WriteNullValue()

Writes the JSON literal "null" as an element of a JSON array.

public void WriteNullValue()

Exceptions

Exception Description
InvalidOperationException Thrown if this would result in invalid JSON being written (while validation is enabled).

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