how to merge two json data by mapping
I have two json datas as json_1 = [{'purchasedPerson__id': 2, 'credit': 3000}, {'purchasedPerson__id': 4, 'credit': 5000}] json_2 = [{'purchasedPerson__id': 1, 'debit': 8526}, {'purchasedPerson__id': 4, 'debit': 2000}] i want to merge both the json and needed optput as json_final = [{'purchasedPerson__id':…