[]
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.
public JsonDataSource(string jsonText)
Public Sub New(jsonText As String)
| Type | Name | Description |
|---|---|---|
| string | jsonText | The JSON text. |
string jsonText = "[{\"student\":{\"name\":\"Jane\",\"score\":100}}]";
JsonDataSource dataSource = new JsonDataSource(jsonText);
workbook.AddDataSource("ds", dataSource);