<PackageReference Include="Newtonsoft.Json" Version="6.0.3" />

JsonPropertyAttribute

public sealed class JsonPropertyAttribute : Attribute
Instructs the JsonSerializer to always serialize the member with the specified name.

Gets or sets the default value handling used when serializing this property.

public bool IsReference { get; set; }

Gets or sets whether this property's value is serialized as a reference.

public Type ItemConverterType { get; set; }

Gets or sets the converter used when serializing the property's collection items.

public bool ItemIsReference { get; set; }

Gets or sets whether this property's collection items are serialized as a reference.

Gets or sets the the reference loop handling used when serializing the property's collection items.

Gets or sets the the type name handling used when serializing the property's collection items.

public NullValueHandling NullValueHandling { get; set; }

Gets or sets the null value handling used when serializing this property.

Gets or sets the object creation handling used when deserializing this property.

public int Order { get; set; }

Gets or sets the order of serialization and deserialization of a member.

public string PropertyName { get; set; }

Gets or sets the name of the property.

Gets or sets the reference loop handling used when serializing this property.

public Required Required { get; set; }

Gets or sets a value indicating whether this property is required.

public TypeNameHandling TypeNameHandling { get; set; }

Gets or sets the type name handling used when serializing this property.

Initializes a new instance of the JsonPropertyAttribute class.

public JsonPropertyAttribute(string propertyName)

Initializes a new instance of the JsonPropertyAttribute class with the specified name.