Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface System.​Text.​Json.​Serialization.​Metadata.​IJsonTypeInfoResolver
Assembly: System.Text.Json
Used to resolve the JSON serialization contract for requested types.
Methods
GetTypeInfo​(Type type,
JsonSerializerOptions options)
Resolves a <see cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo" /> contract for the requested type and options.
Returns A <see cref="T:System.Text.Json.Serialization.Metadata.JsonTypeInfo" /> instance matching the requested type, or <see langword="null" /> if no contract could be resolved.
type
Type to be resolved.
options
Configuration used when resolving the metadata.