Click or drag to resize
GtmDataHelper.SerializeToJsonInternal Method (IEnumerable<GtmData>, String)
Serializes collection of GtmData to array of JSONs.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual string SerializeToJsonInternal(
	IEnumerable<GtmData> gtmDataCollection,
	string purpose = null
)

Parameters

gtmDataCollection
Type: System.Collections.Generic.IEnumerable<GtmData>
Data to be serialized to array of JSONs.
purpose (Optional)
Type: System.String
Contextual information fitting for customizations.

Return Value

Type: String
Array of JSONs.
See Also