Click or drag to resize
GtmDataHelperSerializeToJson Method (GtmData, String)
Serializes gtmData to JSON.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public static string SerializeToJson(
	GtmData gtmData,
	string purpose = null
)

Parameters

gtmData
Type: CMS.EcommerceGtmData
Data to be serialized to JSON.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: String
JSON representation of gtmData.
See Also