public T Deserialize<T> (
Public Function Deserialize(Of T) ( _
input As String _
) As T
T Deserialize (
Generic Template Parameters
The type of the resulting object.
- input (String)
The JSON string to be deserialized.
The deserialized object.
The Deserialize<(Of T>)(String) method is equivalent to first using the DeserializeObject(String) method to obtain an object graph and then trying to cast the result to type T.
The input length exceeds MaxJsonLength.
The recursion limit defined by RecursionLimit was exceeded.
input contains an unexpected character sequence.
input is a dictionary type and a non-string key value is encountered.
input includes member definitions that are not available on type T.
input is null.
input contains a “__type” tag indicating a custom type, but the type resolver currently associated with the serializer cannot find a corresponding managed type.
input contains a “__type” tag indicating a custom type, but the result of deserializing the corresponding JSON string cannot be assigned to the expected target type.
input contains a “__type” tag indicating either Object or a non-instantiable type (for example, abstract types and interfaces).
An attempt is made to convert a JSON array to an array-like managed type that is not supported for use as a JSON deserialization target.
It is not possible to convert input to T.
Assembly: System.Web.Extensions (Module: System.Web.Extensions)