Class NewtonsoftJsonContractResolver (1.68.0)

public class NewtonsoftJsonContractResolver : DefaultContractResolver, IContractResolver

A JSON contract resolver to apply RFC3339DateTimeConverter and ExplicitNullConverter as necessary.

Inheritance

object > Newtonsoft.Json.Serialization.DefaultContractResolver > NewtonsoftJsonContractResolver

Implements

Newtonsoft.Json.Serialization.IContractResolver

Namespace

Google.Apis.Json

Assembly

Google.Apis.Core.dll

Remarks

Using a contract resolver is recommended in the Json.NET performance tips: https://www.newtonsoft.com/json/help/html/Performance.htm#JsonConverters

Methods

CreateContract(Type)

protected override JsonContract CreateContract(Type objectType)

Determines which contract type is created for the given type.

Parameter
Name Description
objectType Type

Type of the object.

Returns
Type Description
Newtonsoft.Json.Serialization.JsonContract

A Newtonsoft.Json.Serialization.JsonContract for the given type.

Overrides

Extension Method