[]
Generates the table from the specified JSON string.
void FromJson(string json)
Sub FromJson(json As String)
| Type | Name | Description |
|---|---|---|
| string | json | The JSON string representing the table. |
worksheet.Range["A1:B3"].Value = new object[,] {
{"Name", "Value"},
{"A", 100},
{"B", 200}
};
ITable sourceTable = worksheet.Tables.Add(worksheet.Range["A1:B3"], true);
string json = sourceTable.ToJson();
sourceTable.Delete();
ITable table = worksheet.Tables.Add(worksheet.Range["D1:E3"], true);
table.FromJson(json);