{
"id": 6,
"issuer_id": 1,
"total_points": 100,
"membership_details": {
"id": 367,
"valid_from": "2022-07-26T15:23:43.000+05:30",
"valid_through": "2023-07-26T15:23:43.000+05:30"
},
"specific_wallet_transactions": [
{
"id": 9,
"transaction_type": "Earn",
"points": 100,
"points_validity": "2022-04-23T00:00:00.000+05:30",
"order_meta_data": {},
"reason_code": "Earn",
"created_at": "2021-04-23T10:12:41.000+05:30",
"transaction_name": "Earn"
},
{
"id": 16,
"transaction_type": "Burn",
"points": 5,
"points_validity": "null",
"order_meta_data": {
"order_id": "12",
"given_wallet_ids": [
6
],
"used_wallet_ids": [
6
],
"burn_type": "pool burn"
},
"reason_code": "Burn",
"created_at": "2021-04-29T16:28:11.000+05:30",
"transaction_name": "Burn"
},
{
"id": 2775,
"transaction_type": "Burn",
"points": 100,
"points_validity": "null",
"order_meta_data": {},
"reason_code": "Expired Points Transaction",
"created_at": "2022-05-10T17:02:04.000+05:30",
"transaction_name": "Expire"
},
{
"id": 3654,
"transaction_type": "Earn",
"points": 100,
"points_validity": "2024-07-25T00:00:00.000+05:30",
"order_meta_data": {},
"reason_code": "Earn",
"created_at": "2022-07-26T15:23:42.000+05:30",
"transaction_name": "Earn"
}
],
"customer_id": 9,
"customer_email": "",
"issuer_name": "The qq",
"default_currency": "INR",
"conversion_rate": 1.0,
"points_monetary_value": 100.0,
"user_name": "null",
"segment_code": "ww"
}
This is my json and here i need last_transaction = o["specific_wallet_transactions"][-1] and i got it too...... now i need total_points also in last_transaction how to achieve this just i need to append this total_points to last_transaction where last_transaction is dict. I can pass as new param but, how to achieve with same variable now. thanks in advance .