JsonIgnoreAttribute
Prevents a property from being serialized or deserialized.
namespace System.Text.Json.Serialization
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class JsonIgnoreAttribute : JsonAttribute
{
public JsonIgnoreCondition Condition { get; set; } = JsonIgnoreCondition.Always;
}
}