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: 13.0.131
Syntax
C#
public static string ToJSON(
	this DataTable dt,
	bool includeName
)

Parameters

dt
Type: System.DataDataTable
DataTable to export
includeName
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