<PackageReference Include="System.Text.Json" Version="6.0.10" />

JsonParameterInfo

abstract class JsonParameterInfo
Holds relevant state about a method parameter, like the default value of the parameter, and the position in the method's parameter list.

public JsonConverter ConverterBase { get; }

public object DefaultValue { get; }

public bool IgnoreDefaultValuesOnRead { get; }

public byte[] NameAsUtf8Bytes { get; }

public JsonSerializerOptions Options { get; set; }

public Type RuntimePropertyType { get; set; }

public JsonTypeInfo RuntimeTypeInfo { get; set; }

public bool ShouldDeserialize { get; }

protected JsonParameterInfo()

public static JsonParameterInfo CreateIgnoredParameterPlaceholder(JsonParameterInfoValues parameterInfo, JsonPropertyInfo matchingProperty, bool sourceGenMode)

Create a parameter that is ignored at run time. It uses the same type (typeof(sbyte)) to help prevent issues with unsupported types and helps ensure we don't accidently (de)serialize it.

public virtual void Initialize(JsonParameterInfoValues parameterInfo, JsonPropertyInfo matchingProperty, JsonSerializerOptions options)