Click or drag to resize
DataHelperParseJsonValue Method
Parses given value treated as value from JSON, and converts it to given type.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static Object ParseJsonValue(
	string value,
	Type type,
	string columnName,
	string cultureName = null
)

Parameters

value
Type: SystemString
Value to parse.
type
Type: SystemType
Data type of the resulting parsed value.
columnName
Type: SystemString
Name of a JSON element which value to parse.
cultureName (Optional)
Type: SystemString
Name of culture used for parsing values from JSON.

Return Value

Type: Object
Parsed value converted to given type.
Remarks
In case that value is null, DBNull.Value is returned.
See Also