Click or drag to resize
DataExtensionsToJSON Method (DataSet, Boolean)
Exports DataSet to JSON string.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.2.23
Syntax
C#
public static string ToJSON(
	this DataSet ds,
	bool includeName
)

Parameters

ds
Type: System.DataDataSet
DataSet to export
includeName
Type: SystemBoolean
If true, name of the dataset and names of the tables are included in the result

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataSet. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also