DataHelperParseJsonValue Method |
Parses given value treated as value from JSON, and converts it to given type.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax 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:
ObjectParsed
value converted to given
type.
Remarks In case that value is null, DBNull.Value is returned.
See Also