Comment on page


This example demonstrates how to use the JSON Context Provider to read context data from a JSON file and Join it with high-frequency sensor data(simulated).
Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the Agent onto the canvas and rename the Agent. Link the output endpoint to the join.
Save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection.

Step 3: Configure Settings

  1. 1.
    Specify a path to a JSON file that contains context data.
  2. 2.
    Fill in the payload definition as per the contents of the file.
Apply the changes.

Step 4: Results

Save the Data Stream and publish it.
Let's look at the Live Data View. Observe that the context was successfully read and joined with sensor data. A complete example and the files used are provided below.


Security Key
Data Stream
Json File Reader Example.xuc
Context Data
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.