Json.NET - Quick Starts & API Documentation
DeserializeObject Method (value, type, settings)
Namespaces ► Newtonsoft.Json ► JsonConvert ► DeserializeObject(String, Type, JsonSerializerSettings)
Deserializes the JSON to the specified .NET type.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static Object DeserializeObject( string value, Type type, JsonSerializerSettings settings )
Public Shared Function DeserializeObject ( _ value As String, _ type As Type, _ settings As JsonSerializerSettings _ ) As Object
public: static Object^ DeserializeObject( String^ value, Type^ type, JsonSerializerSettings^ settings )
Parameters
- value (String)
- The JSON to deserialize.
- type (Type)
- The type of the object to deserialize to.
- settings (JsonSerializerSettings)
- The JsonSerializerSettings used to deserialize the object. If this is null, default serialization settings will be is used.
Return Value
The deserialized object from the JSON string.