Click or drag to resize
Json.NET

JTokenToObject Method (Type, 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 Object ToObject(
	Type objectType,
	JsonSerializer jsonSerializer
)

Parameters

objectType
Type: SystemType
The object type that the token will be deserialized to.
jsonSerializer
Type: Newtonsoft.JsonJsonSerializer
The JsonSerializer that will be used when creating the object.

Return Value

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