There are two API Request/ URL
This is first API Request URL and data coming from
http://127.0.0.1:8000/api/onlineUserData
{"onlineUserData":[
["Month" , "Amania" , "Shyral" , "Dorpan"],
["Nov-16" , 9 , 11 , 6 ] ,
["Nov-18" , 5 , 0 , 0 ]
]};
This is second API Request URL and data coming from
http://127.0.0.1:8000/api/offlineUserData
{"offlineUserData":[
["Month" , "Amania" , "Shyral" , "Diskhant"],
["Nov-16" , 4 , 7 , 0 ],
["Nov-20" , 12 , 8 , 9 ],
]};
Now i want to sum two JSON data if their name of user and month/date match between two API data
{"AllUser":[
[" Month" , "Amania" , "Shyral" , "Dorpan","Diskhant" ],
[" Nov-16" , 13 , 18 , 6 , 0 ],
[" Nov-18 " , 5 , 0 , 0 , 0 ],
[" Nov-20 " , 12 , 8 , 0 , 9 ], ]
]