[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITables.ToJson

ToJson Method

ToJson()

Generates a JSON string from the tables in the worksheet.

Declaration
string ToJson()
Function ToJson() As String
Returns
Type Description
string

The JSON string representing the tables.

Examples
worksheet.Range["A1:B3"].Value = new object[,] {{"Name", "Value"}, {"A", 100}, {"B", 200}};
ITables tables = worksheet.Tables;
tables.Add(worksheet.Range["A1:B3"], true);
string json = tables.ToJson();