REST JSON Query
To create a new data set from an existing REST JSON connection, follow the steps below:
-
If you have not yet configured the database connection, see REST JSON. Then proceed with the steps below.
If you see the ‘Create Visualization’ dialog box, press the ‘Close’ button to continue with the steps below (recommended).

You can also press Create a Query to open the ‘New Data Worksheet’ dialog box, where you can select the query you wish to create. This allows you to skip the ‘Add’ button and proceed to the next steps.
-
Open the Data Worksheet that will contain the data. (See Create a Data Worksheet or Edit a Data Worksheet.)
-
Press the ‘Add’ button , and select ‘REST JSON Query’ . This opens the ‘REST JSON Query’ dialog box.

-
Enter the ‘URL Suffix’ and desired ‘JSON Path’. See JSONPath - XPath for JSON for information about the JSON Path syntax.

-
Optional: Select ‘Expand Arrays’ to expand a record that contains an array into multiple records.
-
From the ‘Pagination’ menu, select the type of pagination used by the data source, and enter the desired parameters.
-
Optional: If you need to look up a value by using a URL provided by a specific field of the JSON query, follow the steps below:
-
Press the Add Lookup Query button.
-
In the ‘Lookup URL Suffix’ field, enter the name of a parameter, for example
{param1}. This placeholder will be replaced in the URL by the corresponding ‘Key’ field value. -
Enter the JSON path.
-
Enable the ‘Ignore Base Data Source URL’ option.
-
Press the Add Lookup Query button and repeat the above steps to add additional parameters.
Example 1. Lookup QueryThe Lookup Query below queries the URL provided by the
properties.forecastfield of the base query.
-
-
Optional: If you have more than a one data source of this type defined, you can select an alternate data source from the ‘Data Source’ menu.
-
Optional: Enter a ‘Timeout’ in seconds to limit the query execution time.
-
Press OK. This creates a new data block in the Data Worksheet.
-
Optional: Right-click on the data block, and select ‘Properties’ from the context menu. Note: You can also access menu options from the ‘More’ button () in the mini-toolbar. This opens the ‘Table Properties’ panel. In the ‘Name’ field, enter a name for the data block, and press ‘OK’. (See Modify a Column for information about how to rename columns.
Names must be unique without respect to case (e.g., "num1" is the same name as "Num1"). -
Press the ‘Save’ button in the toolbar to save the Data Worksheet.
You can now do pipeline operations on this data, as described in Prepare Your Data, or you can proceed to create Dashboards based on this Data Worksheet. See Visualize Your Data for information about how to construct a Dashboard.



