<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.DataContracts.IJsonWriter

public interface IJsonWriter
Encapsulates logic for serializing objects to JSON.
void WriteComma()

Writes comma.

Writes closing/right square bracket.

Writes closing/right curly brace.

void WriteProperty(string name, string value)

Writes a String property.

void WriteProperty(string name, bool? value)

Writes a Boolean property.

void WriteProperty(string name, int? value)

Writes a Int32 property.

void WriteProperty(string name, double? value)

Writes a Double property.

void WriteProperty(string name, TimeSpan? value)

Writes a TimeSpan property.

void WriteProperty(string name, DateTimeOffset? value)

Writes a DateTimeOffset property.

void WriteProperty(string name, IDictionary<string, double> values)

Writes a IDictionary<T, U> property.

void WriteProperty(string name, IDictionary<string, string> values)

Writes a IDictionary<T, U> property.

void WritePropertyName(string name)

Writes a property name in double quotation marks, followed by a colon.

void WriteRawValue(object value)

Writes Object as raw value directly.

Writes opening/left square bracket.

Writes opening/left curly brace.