Click or drag to resize
Json.NET

JsonProperty Class

 
Maps a JSON property to a .NET member or constructor parameter.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.SerializationJsonProperty

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

The JsonProperty type exposes the following members.

Constructors
  NameDescription
Public methodJsonProperty
Initializes a new instance of the JsonProperty class
Top
Properties
  NameDescription
Public propertyAttributeProvider
Gets or sets the IAttributeProvider for this property.
Public propertyConverter
Gets or sets the JsonConverter for the property. If set this converter takes precedence over the contract converter for the property type.
Public propertyDeclaringType
Gets or sets the type that declared this property.
Public propertyDefaultValue
Gets the default value.
Public propertyDefaultValueHandling
Gets or sets the property default value handling.
Public propertyGetIsSpecified
Gets or sets a predicate used to determine whether the property should be serialized.
Public propertyHasMemberAttribute
Gets or sets a value indicating whether this JsonProperty has a member attribute.
Public propertyIgnored
Gets or sets a value indicating whether this JsonProperty is ignored.
Public propertyIsReference
Gets or sets a value indicating whether this property preserves object references.
Public propertyItemConverter
Gets or sets the converter used when serializing the property's collection items.
Public propertyItemIsReference
Gets or sets whether this property's collection items are serialized as a reference.
Public propertyItemReferenceLoopHandling
Gets or sets the reference loop handling used when serializing the property's collection items.
Public propertyItemTypeNameHandling
Gets or sets the type name handling used when serializing the property's collection items.
Public propertyMemberConverter Obsolete.
Gets or sets the member converter.
Public propertyNullValueHandling
Gets or sets the property null value handling.
Public propertyObjectCreationHandling
Gets or sets the property object creation handling.
Public propertyOrder
Gets or sets the order of serialization of a member.
Public propertyPropertyName
Gets or sets the name of the property.
Public propertyPropertyType
Gets or sets the type of the property.
Public propertyReadable
Gets or sets a value indicating whether this JsonProperty is readable.
Public propertyReferenceLoopHandling
Gets or sets the property reference loop handling.
Public propertyRequired
Gets or sets a value indicating whether this JsonProperty is required.
Public propertySetIsSpecified
Gets or sets an action used to set whether the property has been deserialized.
Public propertyShouldDeserialize
Gets or sets a predicate used to determine whether the property should be deserialized.
Public propertyShouldSerialize
Gets or sets a predicate used to determine whether the property should be serialized.
Public propertyTypeNameHandling
Gets or sets or sets the type name handling.
Public propertyUnderlyingName
Gets or sets the name of the underlying member or parameter.
Public propertyValueProvider
Gets the IValueProvider that will get and set the JsonProperty during serialization.
Public propertyWritable
Gets or sets a value indicating whether this JsonProperty is writable.
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 this instance.
(Overrides ObjectToString.)
Top
See Also