JsonData.To Method

Definition

Overloads

To<T>()

Converts the given JSON value into an instance of a given type.

To<T>(JsonSerializerOptions)

Deserializes the given JSON value into an instance of a given type.

To<T>()

Converts the given JSON value into an instance of a given type.

public T To<T> ();
member this.To : unit -> 'T
Public Function To(Of T) () As T

Type Parameters

T

The type to convert the value into.

Returns

T

A new instance of T constructed from the underlying JSON value.

Applies to

To<T>(JsonSerializerOptions)

Deserializes the given JSON value into an instance of a given type.

public T To<T> (System.Text.Json.JsonSerializerOptions options);
member this.To : System.Text.Json.JsonSerializerOptions -> 'T
Public Function To(Of T) (options As JsonSerializerOptions) As T

Type Parameters

T

The type to deserialize the value into

Parameters

options
System.Text.Json.JsonSerializerOptions

Options to control the conversion behavior.

Returns

T

A new instance of T constructed from the underlying JSON value.

Applies to