Click or drag to resize
Json.NET

JTokenToObjectT Method (JsonSerializer)

 
Creates an instance of the specified .NET type from the JToken using the specified JsonSerializer.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public T ToObject<T>(
	JsonSerializer jsonSerializer
)

Parameters

jsonSerializer
Type: Newtonsoft.JsonJsonSerializer
The JsonSerializer that will be used when creating the object.

Type Parameters

T
The object type that the token will be deserialized to.

Return Value

Type: T
The new object created from the JSON value.
See Also