Mapper: Array Merge / Array Push

Hello everyone,
Please i would like to know how i can achieve merging two arrays together or copying the data one array into another array

sample

“old”:[2,4,6,3,5]

“old1”:[7,0,1]

EXPECTED RESULT

“old”:[2,4,6,3,5,7,0,1]

Hi @abubakar,

You can use the Operator transformer for this. You want to perform the Array merge operation. By default the array will be merged to the left (first selected).

So you would get:
Transformer: Operator transformer
Operation: Array merge
Left: old
Right: old1
**Diff: ** (you can leave this empty, it will then be written to the left (old) value.

2 Likes