Skip to main content

JsonDataSource.Fill() Method

Populates the JsonDataSource object with JSON data.

Namespace: DevExpress.DataAccess.Json

Assembly: DevExpress.DataAccess.v22.2.dll

NuGet Package: DevExpress.DataAccess


public void Fill()


Use the Fill method to populate the JsonDataSource with data.

If you did not define the data source schema, the data source is populated with all data available from the source.

The JsonDataSourceException exception occurs if the Fill method failed to populate the data source. Catch this exception or handle the FillError event to ensure that the Fill method has completed successfully.


The code sample below creates a JSON data source and populates it with data from the endpoint.

using DevExpress.DataAccess.Json;
// ...
// Create a new JSON data source and populate it with data.
var jsonDataSource = new JsonDataSource();
jsonDataSource.JsonSource = new UriJsonSource() {
    Uri = new Uri(@"")

The following code snippets (auto-collected from DevExpress Examples) contain references to the Fill() method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also