<PackageReference Include="System.Text.Json" Version="7.0.0-preview.6.22324.4" />

JsonConverterAttribute

When placed on a property or type, specifies the converter type to use.
public Type ConverterType { get; }

Gets the type of the JsonConverterAttribute, or null if it was created without a type.

public JsonConverterAttribute(Type converterType)

Initializes a new instance of JsonConverterAttribute with the specified converter type.

Initializes a new instance of JsonConverterAttribute.

public virtual JsonConverter CreateConverter(Type typeToConvert)

When overridden in a derived class and ConverterType is null, allows the derived class to create a JsonConverter in order to pass additional state.