Class NewtonsoftJsonContractResolver
A JSON contract resolver to apply RFC3339DateTimeConverter and Google.Apis.Json.NewtonsoftJsonContractResolver.ExplicitNullConverter as necessary.
Inheritance
System.Object
Newtonsoft.Json.Serialization.DefaultContractResolver
NewtonsoftJsonContractResolver
Implements
Newtonsoft.Json.Serialization.IContractResolver
Inherited Members
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.GetSerializableMembers(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateConstructorParameters(System.Reflection.ConstructorInfo, Newtonsoft.Json.Serialization.JsonPropertyCollection)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePropertyFromConstructorParameter(Newtonsoft.Json.Serialization.JsonProperty, System.Reflection.ParameterInfo)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContractConverter(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDictionaryContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateArrayContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateLinqContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateISerializableContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateDynamicContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateStringContract(System.Type)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties(System.Type, Newtonsoft.Json.MemberSerialization)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateMemberValueProvider(System.Reflection.MemberInfo)
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperty(System.Reflection.MemberInfo, Newtonsoft.Json.MemberSerialization)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolvePropertyName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveExtensionDataName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveDictionaryKey(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.GetResolvedPropertyName(System.String)
Newtonsoft.Json.Serialization.DefaultContractResolver.DynamicCodeGeneration
Newtonsoft.Json.Serialization.DefaultContractResolver.DefaultMembersSearchFlags
Newtonsoft.Json.Serialization.DefaultContractResolver.SerializeCompilerGeneratedMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreSerializableInterface
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreSerializableAttribute
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreIsSpecifiedMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.IgnoreShouldSerializeMembers
Newtonsoft.Json.Serialization.DefaultContractResolver.NamingStrategy
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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)
Declaration
protected override JsonContract CreateContract(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType |
Returns
Type | Description |
---|---|
Newtonsoft.Json.Serialization.JsonContract |
Overrides
Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(System.Type)
Implements
Newtonsoft.Json.Serialization.IContractResolver