Click or drag to resize
GtmDataHelperSerializeToJson Method (IEnumerableGtmData, String)
Serializes collection of GtmData to array of JSONs.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public static string SerializeToJson(
	IEnumerable<GtmData> gtmDataCollection,
	string purpose = null
)

Parameters

gtmDataCollection
Type: System.Collections.GenericIEnumerableGtmData
Data to be serialized to array of JSONs.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: String
Array of JSONs.
See Also