[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.JsonDataSource

JsonDataSource Class

The json datasource for the template.

Inheritance
JsonDataSource
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class JsonDataSource
Public Class JsonDataSource
Examples
string jsonText = "[{\"student\":{\"name\":\"Jane\",\"score\":100}}]";
JsonDataSource dataSource = new JsonDataSource(jsonText);
workbook.AddDataSource("ds", dataSource);

Constructors

Name Description
JsonDataSource(string)

Constructs a JSON data source from the specified JSON text.

Use this constructor to wrap JSON content in a JsonDataSource so it can be added as a template data source or bound to a worksheet.