Binding to JSON Data Sources

<< Click to Display Table of Contents >>

Navigation:  Dashboard Designer > Provide Data >

Binding to JSON Data Sources

 

Binding to JSON Data Sources

The Dashboard Designer allows you to connect to the JSON data source that retrieves data from a Web-service endpoint, text file or a string in JSON format.

Create a New Data Connection

Follow the steps below to connect to the JSON data source:

1.Click the New Data Source button in the Data Source ribbon tab.

BJSONDS1

2.On the first page of the invoked Data Source Wizard dialog, select JSON data and click Next.

BJSONDS2

Configure a New Data Connection

1. On the next page, configure a new data connection.

BJSONDS3

JSON String

Specify a string that contains JSON data.

BJSONDS4

Click Next to proceed to the Select Data Fields page.

JSON File

Specify the JSON data location to load content from the selected JSON file.

BJSONDS5

Click Next to proceed to the Select Data Fields page.

Web Service Endpoint (URI)

Specify a URL to a file in JSON format and the Web Service Endpoint's request parameters (username and password, HTTP headers, query parameters or URI path parameters).

A path parameter appends a path element to a JSON endpoint's Uri.

A query parameter specifies an HTTP request parameter that is passed to a JSON endpoint. A header is a custom HTTP header in JSON endpoint requests.

You can use expressions and dashboard parameters to set path parameters, query parameter values and headers. Click the "+" icon to create a new parameter, enable the new parameter's Expression property and select Expression Editor from the Value property's drop-down list.

BJSONDS6

Specify the expression in the invoked Expression Editor and click OK.

BJSONDS7

An expression can include dashboard parameters.

Select Add Dashboard Parameter from the Value property's drop-down list, configure the dashboard parameter in the invoked Dashboard Parameter dialog, and click OK.

BJSONDS9

Path parameters and query parameters are included in endpoint requests in the order in which they are listed. Move a parameter up or down the list to change its position within an endpoint request.

The read-only Resulting URI field displays the result: a JSON URI.

BJSONDS10

Click Next to configure basic HTTP authentication credentials and specify HTTP Header parameters.

BJSONDS11

Click Next to proceed to the Select Data Fields page.

Select Data Fields

1. The "Select data fields" page allows you to include or exclude data fields used in a JSON data source.

BJSONDS12

Click Finish to create a JSON data source.