public class NewtonsoftJsonContractResolver : DefaultContractResolver, IContractResolver
A JSON contract resolver to apply RFC3339DateTimeConverter and ExplicitNullConverter as necessary.
Inheritance
object > Newtonsoft.Json.Serialization.DefaultContractResolver > NewtonsoftJsonContractResolverImplements
Newtonsoft.Json.Serialization.IContractResolverNamespace
Google.Apis.JsonAssembly
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. |