Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Newtonsoft.​Json.​Serialization.​JsonProperty
Assembly: Newtonsoft.Json
Inheritance: object → JsonProperty
Maps a JSON property to a .NET member or constructor parameter.
Properties
public
string
PropertyName
Gets or sets the name of the property.
public
System.​Type
DeclaringType
Gets or sets the type that declared this property.
public
int?
Order
Gets or sets the order of serialization of a member.
public
string
UnderlyingName
Gets or sets the name of the underlying member or parameter.
public
IValueProvider
ValueProvider
Gets the <see cref="T:Newtonsoft.Json.Serialization.IValueProvider" /> that will get and set the <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> during serialization.
public
IAttributeProvider
AttributeProvider
Gets or sets the <see cref="T:Newtonsoft.Json.Serialization.IAttributeProvider" /> for this property.
public
System.​Type
PropertyType
Gets or sets the type of the property.
public
JsonConverter
Converter
Gets or sets the <see cref="T:Newtonsoft.Json.JsonConverter" /> for the property.
If set this converter takes precedence over the contract converter for the property type.
public
JsonConverter
MemberConverter
Gets or sets the member converter.
public
bool
Ignored
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> is ignored.
public
bool
Readable
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> is readable.
public
bool
Writable
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> is writable.
public
bool
HasMemberAttribute
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> has a member attribute.
public
object
DefaultValue
Gets the default value.
public
Required
Required
Gets or sets a value indicating whether this <see cref="T:Newtonsoft.Json.Serialization.JsonProperty" /> is required.
public
bool?
IsReference
Gets or sets a value indicating whether this property preserves object references.
public
NullValueHandling?
NullValueHandling
Gets or sets the property null value handling.
public
DefaultValueHandling?
DefaultValueHandling
Gets or sets the property default value handling.
public
ReferenceLoopHandling?
ReferenceLoopHandling
Gets or sets the property reference loop handling.
public
ObjectCreationHandling?
ObjectCreationHandling
Gets or sets the property object creation handling.
public
TypeNameHandling?
TypeNameHandling
Gets or sets or sets the type name handling.
public
System.​Predicate<​object>
ShouldSerialize
Gets or sets a predicate used to determine whether the property should be serialized.
public
System.​Predicate<​object>
ShouldDeserialize
Gets or sets a predicate used to determine whether the property should be deserialized.
public
System.​Predicate<​object>
GetIsSpecified
Gets or sets a predicate used to determine whether the property should be serialized.
public
System.​Action<​object, object>
SetIsSpecified
Gets or sets an action used to set whether the property has been deserialized.
public
JsonConverter
ItemConverter
Gets or sets the converter used when serializing the property's collection items.
public
bool?
ItemIsReference
Gets or sets whether this property's collection items are serialized as a reference.
public
TypeNameHandling?
ItemTypeNameHandling
Gets or sets the type name handling used when serializing the property's collection items.
public
ReferenceLoopHandling?
ItemReferenceLoopHandling
Gets or sets the reference loop handling used when serializing the property's collection items.
Methods
public
string
ToString​()
Returns a <see cref="T:System.String" /> that represents this instance.
Returns A <see cref="T:System.String" /> that represents this instance.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object