public class ExplicitNullConverter : JsonConverterA JSON converter to write null literals into JSON when explicitly requested.
Namespace
Google.Apis.JsonAssembly
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 |
|
Methods
CanConvert(Type)
public override bool CanConvert(Type objectType)Determines whether this instance can convert the specified object type.
| Parameter | |
|---|---|
| Name | Description |
objectType |
TypeType of the object. |
| Returns | |
|---|---|
| Type | Description |
bool |
|
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.JsonReaderThe Newtonsoft.Json.JsonReader to read from. |
objectType |
TypeType of the object. |
existingValue |
objectThe existing value of object being read. |
serializer |
Newtonsoft.Json.JsonSerializerThe calling serializer. |
| Returns | |
|---|---|
| Type | Description |
object |
The object value. |
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.JsonWriterThe Newtonsoft.Json.JsonWriter to write to. |
value |
objectThe value. |
serializer |
Newtonsoft.Json.JsonSerializerThe calling serializer. |