Table of Contents

WriteObject Method

Definition

Namespace
Cuemon.Extensions.Text.Json
Assemblies
Cuemon.Extensions.Text.Json.dll
Source
src/Cuemon.Extensions.Text.Json/Utf8JsonWriterExtensions.cs

WriteObject(Utf8JsonWriter, object, JsonSerializerOptions)

Serializes the specified value and writes the JSON structure using the specified writer.

public static void WriteObject(this Utf8JsonWriter writer, object value, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter

The Utf8JsonWriter used to write the JSON structure.

value object

The Object to serialize.

options JsonSerializerOptions

Options to control the conversion behavior.