Skip to main content

JSON elements reader

Read a JSON file elements by elements. For example:

A JSON file
{
"elements": [
{ "name": "element1", "value": "value1" },
{ "name": "element2", "value": "value2" },
{ "name": "element3", "value": "value3" }
]
}
Reader configuration
JSON path: $.elements

Parameters

JSON path

The JSON path to the elements to read (For example: $.elements). Optional: when left empty, the whole document is treated as the array to read. The path (or the document itself, when the path is empty) must resolve to an array — anything else fails the run with a "missing root array" error.

Output

JSON Element

The current element being read from the JSON file.

Line index

The 0-based index of the current element in the array (Number). It is populated when the file is read as a run input (the streaming path) only.