Click or drag to resize
Json.NET

JsonConvertDeserializeAnonymousTypeT Method (String, T, JsonSerializerSettings)

 
Deserializes the JSON to the given anonymous type using JsonSerializerSettings.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public static T DeserializeAnonymousType<T>(
	string value,
	T anonymousTypeObject,
	JsonSerializerSettings settings
)

Parameters

value
Type: SystemString
The JSON to deserialize.
anonymousTypeObject
Type: T
The anonymous type object.
settings
Type: Newtonsoft.JsonJsonSerializerSettings
The JsonSerializerSettings used to deserialize the object. If this is null, default serialization settings will be used.

Type Parameters

T
The anonymous type to deserialize to. This can't be specified traditionally and must be inferred from the anonymous type passed as a parameter.

Return Value

Type: T
The deserialized anonymous type from the JSON string.
See Also