Connect to JSON data source
To use JSON data in Bold Reports®, create a JSON data source that retrieves data from a JSON file, a string in JSON format, or an external URL.
How do I create a JSON data source?
To create a JSON data source in the Bold Reports® Web Report Designer, open the Data configuration panel and choose the JSON connection type.
- Click the Data icon in the configuration panel.

- In the
DATAconfiguration panel, click theNEW DATAbutton.
- In the connection type panel, choose the
JSONdata source type.
- Specify the data source name without special characters in the Name field.

You can connect JSON data using the following three options:
- Inline - Inline data.
- File Path - Load from disk.
- External - Load from external URL.

Inline data
To use inline JSON data in the Bold Reports® Web Report Designer, paste a JSON string into the Inline text area.
-
Choose
Inlinein theTypedrop-down. -
Specify a string that contains JSON data in the
Inlinetext area.[ { "ID": 1, "IDBook": 1, "FirstName": "First Name 1", "LastName": "Last Name 1" }, { "ID": 2, "IDBook": 1, "FirstName": "First Name 2", "LastName": "Last Name 2" } ] -
Click
Connectto open the query design pane. The query design pane shows the specified JSON data’s structure in the left pane.
-
Drag and drop the table from the left pane in the query design view page and execute.

-
Click
Finishto save the data source with a relevant name and continue designing the report.
Load from disk
To load a JSON file from disk in the Bold Reports® Web Report Designer, upload the file and connect.
- Choose the
Fileoption in theTypefield. The upload option appears, as shown in the following image.
- Click the three-dotted button to open the upload box. Browse the JSON file and click open.

- Click
Connectto open the query design pane.
- The query design pane shows the specified JSON data’s structure in the left pane.

- Drag and drop the table from the left pane in the query design view page and execute.

- Click
Finishto save the data source with a relevant name and continue designing the report.
Load from external URL
To load JSON data from an external URL in the Bold Reports® Web Report Designer, specify the URL and connect.
-
Choose the
Externaloption in theTypefield.
-
Specify an external URL in the
Externaltext area.
-
Click
Connectto open the query design pane. The query design pane shows the specified JSON data’s structure in the left pane. -
Drag and drop the table from the left pane in the query design view page and execute.

-
Click
Finishto save the data source with a relevant name and continue designing the report.
Note:
- In schema tree, the nested fields in the JSON data will be shown as flat structure.
- When the JSON data contains duplicate key names at different levels, Bold Reports® ensures uniqueness and avoids conflicts by appending the parent keys to each field name using the following format:
<fieldName>__<topLevelParentKey>_<nextParentKey>_..._<immediateParentKey>_.
Frequently asked questions
How are nested JSON fields shown?
In the schema tree, the nested fields in the JSON data are shown as a flat structure.
How does Bold Reports® handle duplicate JSON key names?
Bold Reports® appends the parent keys to each field name to ensure uniqueness, using the format <fieldName>__<topLevelParentKey>_<nextParentKey>_..._<immediateParentKey>_.