JsonSerializerHelper.FromJson method (1 of 2)
Deserializes the given JSON string to an object of the specified type.
public static object FromJson(string json, Type type)
| parameter | description |
|---|---|
| json | The JSON string to deserialize. |
| type | The type to which the JSON string should be deserialized. |
Return Value
The deserialized object.
See Also
- class JsonSerializerHelper
- namespace Kestrun.Utilities.Json
JsonSerializerHelper.FromJson<T> method (2 of 2)
Deserializes the given JSON string to an object of type T.
public static T FromJson<T>(string json)
| parameter | description |
|---|---|
| T | The type of the object to deserialize to. |
| json | The JSON string to deserialize. |
Return Value
The deserialized object of type T.
See Also
- class JsonSerializerHelper
- namespace Kestrun.Utilities.Json