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.​JsonPropertyAttribute

Assembly: Newtonsoft.Json

Inheritance: object → System.​Attribute → JsonPropertyAttribute

Instructs the <see cref="T:Newtonsoft.Json.JsonSerializer" /> to always serialize the member with the specified name.

Properties

ItemConverterType
Gets or sets the <see cref="T:Newtonsoft.Json.JsonConverter" /> used when serializing the property's collection items.
public object[]
ItemConverterParameters
The parameter list to use when constructing the <see cref="T:Newtonsoft.Json.JsonConverter" /> described by <see cref="P:Newtonsoft.Json.JsonPropertyAttribute.ItemConverterType" /> . If <c>null</c> , the default constructor is used. When non- <c>null</c> , there must be a constructor defined in the <see cref="T:Newtonsoft.Json.JsonConverter" /> that exactly matches the number, order, and type of these parameters.
NamingStrategyType
Gets or sets the <see cref="T:System.Type" /> of the <see cref="T:Newtonsoft.Json.Serialization.NamingStrategy" /> .
public object[]
NamingStrategyParameters
The parameter list to use when constructing the <see cref="T:Newtonsoft.Json.Serialization.NamingStrategy" /> described by <see cref="P:Newtonsoft.Json.JsonPropertyAttribute.NamingStrategyType" /> . If <c>null</c> , the default constructor is used. When non- <c>null</c> , there must be a constructor defined in the <see cref="T:Newtonsoft.Json.Serialization.NamingStrategy" /> that exactly matches the number, order, and type of these parameters.
NullValueHandling
Gets or sets the null value handling used when serializing this property.
DefaultValueHandling
Gets or sets the default value handling used when serializing this property.
ReferenceLoopHandling
Gets or sets the reference loop handling used when serializing this property.
ObjectCreationHandling
Gets or sets the object creation handling used when deserializing this property.
TypeNameHandling
Gets or sets the type name handling used when serializing this property.
public bool
IsReference
Gets or sets whether this property's value is serialized as a reference.
public int
Order
Gets or sets the order of serialization of a member.
public Required
Required
Gets or sets a value indicating whether this property is required.
public string
PropertyName
Gets or sets the name of the property.
ItemReferenceLoopHandling
Gets or sets the reference loop handling used when serializing the property's collection items.
ItemTypeNameHandling
Gets or sets the type name handling 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 object
TypeId

Methods

public bool
Equals​(object obj)
Inherited from System.​Attribute
public int
GetHashCode​()
Inherited from System.​Attribute
public bool
IsDefaultAttribute​()
Inherited from System.​Attribute
public bool
Match​(object obj)
Inherited from System.​Attribute
protected void
Finalize​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object