Setting up a JSON connection

To set up a JSON connection to connect a JReport catalog to a JSON data source, follow the steps below:

  1. Create a catalog or open a catalog, then in the Data tab of the Catalog Browser, right-click the node of a data source and choose Add JSON Connection from the shortcut menu.

    If you want to set up the connection by adding a data source to an existing catalog and then defining the connection on the data source, open the catalog, select any data source contained in it, click the New Data Source button on the Catalog Browser toolbar, then in the New Data source dialog, specify the name of the data source, select the JSON connection type and click OK.

    The JSON Connection Wizard appears.

  2. In the Extract JSON Schema screen, provide the required information for extracting JSON schema. See the screen.

    When done, click Next to go to the next screen.

  3. In the Modify Schema Properties screen, the elements in the JSON schema are listed in the Schema box. Select an element and modify its properties in the Properties box as required and then click Next. See the screen.
  4. In the Transformed Relational Schema screen, check the transformed result listed in the Transformed Tables box, and then click Next. See the screen.
  5. In the Add Table screen, add the required tables to the connection. See the screen.
  6. Click Finish to confirm the transformed result and finalize the transformation process.