[]
Generates a JSON string from the tables in the worksheet.
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string representing the tables. |
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();