Click or drag to resize
Json.NET

JTokenToObjectT Method

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

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

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