Project

General

Profile

Merge arrays

Description

Merges two or more arrays and creates a new array where each element contains all the properties of the elements of the source arrays (i.e. applies Merge Objects to the corresponding elements of the source arrays). IMPORTANT: All arrays must have the same length

Input/Output

Array : array <= Source

Output : array

Usage

  1. Connect a source to the operator
  2. Drag an array from the source tree and drop it into input field Array, then click on Add array
  3. Click on OK

You can repeat step 1-3 any time you want

Example

Array #1 = [{"key1":"value1", "key2":1}, {"key1":"value2", "key2":2}]
Array #2 = [{"key3":true, "key4":1}, {"key3":false, "key4":2}]

Output = [{"key1":"value1", "key2":1, "key3":true, "key4":1}, {"key1":"value2", "key2":2, "key3":false, "key4":2}]