[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITable.ToJson

ToJson Method

ToJson()

Generates a JSON string from the table.

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

The JSON string generated from the table.

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