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.

class System.​Text.​Json.​Serialization.​JsonSerializerContext

Assembly: System.Text.Json

Inheritance: object → JsonSerializerContext

Implemented Interfaces

Provides metadata about a set of types that is relevant to JSON serialization.

Properties

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

Methods

public JsonTypeInfo
GetTypeInfo​(Type type)
Gets metadata for the specified type.
Returns The metadata for the specified type, or <see langword="null" /> if the context has no metadata for the type.
type The type to fetch metadata for.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object