[]
Generates a JSON string from the table.
string ToJson()
Function ToJson() As String
| Type | Description |
|---|---|
| string | The JSON string generated from the table. |
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"Apple", 100},
{"Pear", 200}
};
ITable table = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
string json = table.ToJson();