Click or drag to resize

JsonSerializerDeserializeFromString Method

Deserialize JSON string into object of a specific Type and name. Can set default value if needed

Namespace:  Crosser.Server.Modules.Serializer
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public Object DeserializeFromString(
	string json,
	string parameterName,
	Type parameterType,
	Object defaultValue = null
)

Parameters

json
Type: SystemString
JSON string
parameterName
Type: SystemString
Name of parameter
parameterType
Type: SystemType
Type of parameter
defaultValue (Optional)
Type: SystemObject
The default value

Return Value

Type: Object

Implements

ISerializerDeserializeFromString(String, String, Type, Object)
See Also