Skip to main content

Stacked Response

Sometimes you may need to extract multiple parts from the JSON response.

In this example we pull out all of the bank holidays from the UK Gov feed and assign a static value to the region column.

<Fetch url="https://www.gov.uk/bank-holidays.json">
<DataTableTransform path="england-and-wales.events">
<ColumnMap value="england-and-wales" to="region" />
</DataTableTransform>
<DataTableTransform path="scotland.events">
<ColumnMap value="scotland" to="region" />
</DataTableTransform>
<DataTableTransform path="northern-ireland.events">
<ColumnMap value="northern-ireland" to="region" />
</DataTableTransform>
</Fetch>