I have a python script that uses the Get API to give me two json arrays
data1
{'result': [
{'number': '0010041', 'month': 'January'},
{'number': '0010042', 'month': 'March'}
]}
data2
{'result': [
{'task': '0010041', 'time_left': '20 sec'},
{'task': '0010042', 'time_left': '6 min'}
]}
I want to merge the two using the common entry so in this case 'number' and 'task' where they are the same merge the rest of the data in the array.
eg.
'number': '0010041', 'month': 'January', 'time_left': '20 sec'
'number': '0010042', 'month': 'March', 'time_left': '6 min'
How?