<PackageReference Include="System.Text.Json" Version="9.0.0-preview.4.24266.19" />

JsonPropertyInfo

public abstract class JsonPropertyInfo
Provides JSON serialization-related metadata about a property or field.

Gets or sets the custom attribute provider for the current property.

public JsonConverter CustomConverter { get; set; }

Gets or sets a custom converter override for the current property.

public Func<object, object> Get { get; set; }

Gets or sets a getter delegate for the property.

public bool IsExtensionData { get; set; }

Gets or sets a value that indicates whether the current property is a special extension data property.

public bool IsRequired { get; set; }

Gets or sets a value that indicates whether the current property is required for deserialization to be successful.

public string Name { get; set; }

Gets or sets the JSON property name used when serializing the property.

public JsonNumberHandling? NumberHandling { get; set; }

Gets or sets the JsonNumberHandling applied to the current property.

Gets or sets a value indicating if the property or field should be replaced or populated during deserialization.

Gets the JsonSerializerOptions value associated with the current contract instance.

public int Order { get; set; }

Gets or sets the serialization order for the current property.

public Type PropertyType { get; }

Gets the type of the current property.

public Action<object, object> Set { get; set; }

Gets or sets a setter delegate for the property.

public Func<object, object, bool> ShouldSerialize { get; set; }

Gets or sets a predicate that determines whether the current property value should be serialized.