| JsonConvertDeserializeAnonymousTypeT Method (String, T) |
Deserializes the JSON to the given anonymous type.
Namespace:
Newtonsoft.Json
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax public static T DeserializeAnonymousType<T>(
string value,
T anonymousTypeObject
)
Parameters
- value
- Type: SystemString
The JSON to deserialize. - anonymousTypeObject
- Type: T
The anonymous type object.
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:
TThe deserialized anonymous type from the JSON string.
See Also