JSON.Parse method (1 of 2)

namespace: Serenity   assemblySerenity.Net.Core

Deserializes a JSON string to an object

public static object Parse(string input, Type targetType, bool includeNulls = false)
parameter description
targetType Type to deserialize
input JSON string
includeNulls If true, if a value is null and target property is not nullable, raises error.

Return Value

Deserialized object

See Also


JSON.Parse<T> method (2 of 2)

namespace: Serenity   assemblySerenity.Net.Core

Deserializes a JSON string to an object

public static T Parse<T>(string input, bool includeNulls = false)
parameter description
T Type to deserialize
input JSON string
includeNulls If true, if a value is null and target property is not nullable, raises error.

Return Value

Deserialized object

See Also