merge

The merge filter accepts two object arguments and returns a merge of the two.

{% set data1 = {"one": "Foo"} %}
{% set data2 = {"two": "Bar"} %}
{% set data3 = data1|merge(data2) %}