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
public
System.​Type
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.
public
System.​Type
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.
public
NullValueHandling
NullValueHandling
Gets or sets the null value handling used when serializing this property.
public
DefaultValueHandling
DefaultValueHandling
Gets or sets the default value handling used when serializing this property.
public
ReferenceLoopHandling
ReferenceLoopHandling
Gets or sets the reference loop handling used when serializing this property.
public
ObjectCreationHandling
ObjectCreationHandling
Gets or sets the object creation handling used when deserializing this property.
public
TypeNameHandling
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.
public
ReferenceLoopHandling
ItemReferenceLoopHandling
Gets or sets the reference loop handling used when serializing the property's collection items.
public
TypeNameHandling
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
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object