Class ExplicitNullConverter (1.68.0)

public class ExplicitNullConverter : JsonConverter

A JSON converter to write null literals into JSON when explicitly requested.

Inheritance

object > Newtonsoft.Json.JsonConverter > ExplicitNullConverter

Namespace

Google.Apis.Json

Assembly

Google.Apis.Core.dll

Properties

CanRead

public override bool CanRead { get; }

Gets a value indicating whether this Newtonsoft.Json.JsonConverter can read JSON.

Property Value
Type Description
bool

true if this Newtonsoft.Json.JsonConverter can read JSON; otherwise, false.

Overrides
Newtonsoft.Json.JsonConverter.CanRead

Methods

CanConvert(Type)

public override bool CanConvert(Type objectType)

Determines whether this instance can convert the specified object type.

Parameter
Name Description
objectType Type

Type of the object.

Returns
Type Description
bool

true if this instance can convert the specified object type; otherwise, false.

Overrides

ReadJson(JsonReader, Type, object, JsonSerializer)

public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

Reads the JSON representation of the object.

Parameters
Name Description
reader Newtonsoft.Json.JsonReader

The Newtonsoft.Json.JsonReader to read from.

objectType Type

Type of the object.

existingValue object

The existing value of object being read.

serializer Newtonsoft.Json.JsonSerializer

The calling serializer.

Returns
Type Description
object

The object value.

Overrides

WriteJson(JsonWriter, object, JsonSerializer)

public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

Writes the JSON representation of the object.

Parameters
Name Description
writer Newtonsoft.Json.JsonWriter

The Newtonsoft.Json.JsonWriter to write to.

value object

The value.

serializer Newtonsoft.Json.JsonSerializer

The calling serializer.

Overrides

Extension Method