<PackageReference Include="System.Text.Json" Version="6.0.0-rc.2.21480.5" />

JsonSerializerContext

public abstract class JsonSerializerContext
Provides metadata about a set of types that is relevant to JSON serialization.

Gets the run-time specified options of the context. If no options were passed when instanciating the context, then a new instance is bound and returned.

public abstract JsonTypeInfo GetTypeInfo(Type type)

Returns a JsonTypeInfo instance representing the given type.