ActiveReports 18 .NET Edition
Report Authors: Designer Components / Data Binding / Data Binding in Section Reports / Connect to a Data Source / JSON Provider
In This Topic
    JSON Provider
    In This Topic

    This article explains connecting a Section report to a JSON data source.

    Connect to a JSON Data Source

    1. In the designer, select the Data Source icon on the Detail section of the report or click the gray area around the design surface and select the Edit Data Source link in the Properties pane.
    2. In the Report Data Source dialog that appears, select the JSON tab to connect to a JSON data source.
      Connect to a JSON Data Provider
    3. Click the Build button next to the Connection String section to open the Configure JSON Data Source dialog box.
      Configure JSON Data Source Dialog Box
    4. To specify the Data Path of the file, click the Open button and navigate to the desired folder on your system. For example, you can connect to the 'Customers.json' sample data source which can be downloaded from GitHub.
      For more information, see the Configuration Settings for JSON Data Source.
    5. Click OK to save the changes and close the Configure JSON Data Source dialog box.
      The Connection String section displays the generated connection string as shown below.
      Connection String
      Copy Code
      jsondoc=C:\Customers.json
      
    6. In the JSON Path field, enter a valid JSON Path expression or click the Build button to generate the path using the JSON query designer.
      JSON Path
      Copy Code
      $.Customers
      

      For more information on JSON Path expressions, please visit this article.
    7. Click the OK button to save the changes.
      JSON Configuration Details

    Configuration Settings for JSON Data Source

    The JSON Data Provider provides the following configuration settings in the Configure JSON Data Source dialog box.