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 System.​Text.​Json.​Serialization.​Metadata.​JsonPropertyInfo
Assembly: System.Text.Json
Inheritance: object → JsonPropertyInfo
Provides JSON serialization-related metadata about a property or field.
Properties
public
JsonParameterInfo
AssociatedParameter
Gets the constructor parameter associated with the current property.
AttributeProvider
Gets or sets the custom attribute provider for the current property.
public
JsonConverter
CustomConverter
Gets or sets a custom converter override for the current property.
public
Type
DeclaringType
Gets the declaring type of the property.
public
Func<​object, object>
Get
Gets or sets a getter delegate for the property.
public
bool
IsExtensionData
Gets or sets a value that indicates whether the current property is a special extension data property.
public
bool
IsGetNullable
Gets or sets a value indicating whether the return type of the getter is annotated as nullable.
public
bool
IsRequired
Gets or sets a value that indicates whether the current property is required for deserialization to be successful.
public
bool
IsSetNullable
Gets or sets a value indicating whether the input type of the setter is annotated as nullable.
public
string
Name
Gets or sets the JSON property name used when serializing the property.
public
JsonNumberHandling?
NumberHandling
Gets or sets the <see cref="T:System.Text.Json.Serialization.JsonNumberHandling" /> applied to the current property.
public
JsonObjectCreationHandling?
ObjectCreationHandling
Gets or sets a value indicating if the property or field should be replaced or populated during deserialization.
public
JsonSerializerOptions
Options
Gets the <see cref="T:System.Text.Json.JsonSerializerOptions" /> value associated with the current contract instance.
public
int
Order
Gets or sets the serialization order for the current property.
public
Type
PropertyType
Gets the type of the current property.
public
Action<​object, object>
Set
Gets or sets a setter delegate for the property.
public
Func<​object, object, bool>
ShouldSerialize
Gets or sets a predicate that determines whether the current property value should be serialized.
Methods
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
public
string
ToString​()
Inherited from object