A newer version of this page is available. Switch to the current version.

JsonDataSource.Fill() Method

Populates the JsonDataSource object with JSON data.

Namespace: DevExpress.DataAccess.Json

Assembly: DevExpress.DataAccess.v19.1.dll


public void Fill()


Use the Fill method to retrieve JSON data to the Report Designer’s Field List.

using DevExpress.DataAccess.Json;
using DevExpress.XtraReports.UI;
// ...
public static JsonDataSource CreateDataSourceFromWeb() {
    var jsonDataSource = new JsonDataSource();
    // Specify the data source location
    jsonDataSource.JsonSource = new UriJsonSource(new Uri("http://northwind.servicestack.net/customers.json"));
    // Retrieve data from the JSON data source to the Report Designer's Field List
    return jsonDataSource;
See Also