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

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 9.0.0
public static string ToJSON(
	this DataTable dt,
	bool includeName


Type: System.DataDataTable
DataTable to export
Type: SystemBoolean
If true, name of the table is included in 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 DataTable. 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