I have a list of tuples wherein each tuple has a number of dictionaries that i want to merge into one (i.e. within each tuple there'll be just one dictionary). Say for example,
payload = [
(
{"foo1":"value1"},
{"bar1":"value1"}
),
(
{"foo2":"value2"},
{"bar2":"value2"}
)
]
and what i want to achieve is something like this:
payload = [
{"foo1":"value1","bar1":"value1"},
{"foo2":"value2","bar2","value2"}
]