2021.2

Table Of Contents
2. Right-click the opening bracket of the first of the repeating elements and select Add
Repeat. This adds a Repeat step to the data mapping configuration.
By default, the Repeat type of this step is set to For Each. With this setting the Extract
step goes through the defined collection of elements, without the need for a Goto step
within the loop. (With the other Repeat type settings the loop must contain a Goto step.)
You can find the corresponding JsonPath in the JsonPath Collection field on the Step
properties pane, as long as the Repeat step is selected on the Steps pane.
Tip
You may edit the JsonPath in the JsonPath Collection field to include or exclude
elements from the loop. For an overview of the JsonPath syntax, see
https://github.com/json-path/jsonpath.
3. (Optional.) Add an empty detail table via the Data Model pane: right-click the Data Model
and select Add a table. Give the detail table a name.
4. Select the Repeat step on the Steps pane.
5. Extract the data: inside the first of the repeating elements, select the data that you want to
extract. Then right-click the selected nodes and select Add Extraction, or drag & drop in
the Data Model.
When you drag & drop data on the name of a detail table in the Data Model pane, the data
are added to that detail table.
Dropping the data somewhere else on the Data Model pane creates a new detail table,
with a default name that you can change later on (see "Renaming a detail table" on
page313).
The new Extract step will be located in the Repeat step.
About JsonPath
The DataMapper moves through JSON files using JsonPath, a path-like syntax to identify and
navigate elements in a JSON document. For an overview of the JsonPath syntax, see
https://github.com/json-path/jsonpath.
In the DataMapper the JsonPath can be absolute (start with $ which is the root) or relative to the
current position (start with . which is the current element).
A JsonPath can be relative or absolute. Note, however, that with a relative JsonPath going up
to a parent element is not possible.
Page 244