Click or drag to resize
Json.NET

JsonObjectContract Class

 
Contract details for a Type used by the JsonSerializer.
Inheritance Hierarchy

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public class JsonObjectContract : JsonContainerContract

The JsonObjectContract type exposes the following members.

Constructors
  NameDescription
Public methodJsonObjectContract
Initializes a new instance of the JsonObjectContract class.
Top
Properties
  NameDescription
Public propertyConverter
Gets or sets the default JsonConverter for this contract.
(Inherited from JsonContract.)
Public propertyCreatedType
Gets or sets the type created during deserialization.
(Inherited from JsonContract.)
Public propertyCreatorParameters
Gets a collection of JsonProperty instances that define the parameters used with OverrideCreator.
Public propertyDefaultCreator
Gets or sets the default creator method used to create the object.
(Inherited from JsonContract.)
Public propertyDefaultCreatorNonPublic
Gets or sets a value indicating whether the default creator is non-public.
(Inherited from JsonContract.)
Public propertyExtensionDataGetter
Gets or sets the extension data getter.
Public propertyExtensionDataNameResolver
Gets or sets the extension data name resolver.
Public propertyExtensionDataSetter
Gets or sets the extension data setter.
Public propertyExtensionDataValueType
Gets or sets the extension data value type.
Public propertyIsReference
Gets or sets whether this type contract is serialized as a reference.
(Inherited from JsonContract.)
Public propertyItemConverter
Gets or sets the default collection items JsonConverter.
(Inherited from JsonContainerContract.)
Public propertyItemIsReference
Gets or sets a value indicating whether the collection items preserve object references.
(Inherited from JsonContainerContract.)
Public propertyItemNullValueHandling
Gets or sets how the object's properties with null values are handled during serialization and deserialization.
Public propertyItemReferenceLoopHandling
Gets or sets the collection item reference loop handling.
(Inherited from JsonContainerContract.)
Public propertyItemRequired
Gets or sets a value that indicates whether the object's properties are required.
Public propertyItemTypeNameHandling
Gets or sets the collection item type name handling.
(Inherited from JsonContainerContract.)
Public propertyMemberSerialization
Gets or sets the object member serialization.
Public propertyOnDeserializedCallbacks
Gets or sets all methods called immediately after deserialization of the object.
(Inherited from JsonContract.)
Public propertyOnDeserializingCallbacks
Gets or sets all methods called during deserialization of the object.
(Inherited from JsonContract.)
Public propertyOnErrorCallbacks
Gets or sets all method called when an error is thrown during the serialization of the object.
(Inherited from JsonContract.)
Public propertyOnSerializedCallbacks
Gets or sets all methods called after serialization of the object graph.
(Inherited from JsonContract.)
Public propertyOnSerializingCallbacks
Gets or sets all methods called before serialization of the object.
(Inherited from JsonContract.)
Public propertyOverrideCreator
Gets or sets the function used to create the object. When set this function will override DefaultCreator. This function is called with a collection of arguments which are defined by the CreatorParameters collection.
Public propertyProperties
Gets the object's properties.
Public propertyUnderlyingType
Gets the underlying type for the contract.
(Inherited from JsonContract.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also