JSON data format

JSON array and JSON object formats are described in this documentation.

JSON Array

If an array, each object in the array must have a key named key:

[
  {"key": "MyKey1"},
  {"key": "MyKey2"}
]
The matched terminal produces an array of JSON objects with key and value keys:
[
   {"key": "MyKey1", "value": "MyVal1"},
   {"key": "MyKey2", "value": "MyVal2"}

The unmatched terminal produces an array of JSON objects with a single key named key:

[
  {"key": "MyKey1"},
  {"key": "MyKey2"}
]

If there are no results on matched or unmatched terminals, an empty array will be returned.

JSON Object

If a JSON object is sent to the input terminal the names of the fields of the object specify which keys to lookup in the cache. The value of the keys is irrelevant and can be null, or any other value:

{
   "MyKey1": null,
   "MyKey2": 1
}
The matched terminal will populate the values of the fields:
{
   "MyKey1": "MyVal1",
   "MyKey2": "MyVal2"
}
The unmatched terminal will provide an object that has fields with null values:
{
   "MyKey1": null,
   "MyKey2": null
}

If there are no results on matched or unmatched terminals, an empty object will be returned.