[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITable.FromJson

FromJson Method

FromJson(string)

Generates the table from the specified JSON string.

Declaration
void FromJson(string json)
Sub FromJson(json As String)
Parameters
Type Name Description
string json

The JSON string representing the table.

Examples
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);