Skip to content

Utf8JsonWriter.WriteBooleanValue Method

Definition

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

WriteBooleanValue(bool)

Writes the Boolean value (as a JSON literal "true" or "false") as an element of a JSON array.

public void WriteBooleanValue(bool value)

Parameters

Name Type Description
value bool The value write.

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