Class NewtonsoftJsonContractResolver
A JSON contract resolver to apply RFC3339DateTimeConverter and ExplicitNullConverter as necessary.
Implements
IContractResolver
Inherited Members
DefaultContractResolver.DynamicCodeGeneration
DefaultContractResolver.DefaultMembersSearchFlags
DefaultContractResolver.SerializeCompilerGeneratedMembers
DefaultContractResolver.IgnoreSerializableInterface
DefaultContractResolver.IgnoreSerializableAttribute
DefaultContractResolver.IgnoreIsSpecifiedMembers
DefaultContractResolver.IgnoreShouldSerializeMembers
DefaultContractResolver.NamingStrategy
Namespace: Google.Apis.Json
Assembly: Google.Apis.Core.dll
Syntax
public class NewtonsoftJsonContractResolver : DefaultContractResolver, IContractResolver
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)
Determines which contract type is created for the given type.
Declaration
protected override JsonContract CreateContract(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
JsonContract | A Newtonsoft.Json.Serialization.JsonContract for the given type. |
Overrides
Implements
Newtonsoft.Json.Serialization.IContractResolver