How can I insert a list inside of a list that is in a dictionary?

```
[
  {
    "branches": [],
    "email": "hocomes1@delowd.com",
    "report_to": "1",
    "role": "2",
    "user_id": 2,
    "user_name": "NorokUser1"
  },
  {
    "branch_id": 1,
    "branch_name": "NorokBranch2"
  }
]

```

and my required condition is like this :

```
[
  {
    "branches": [  {
    "branch_id": 1,
    "branch_name": "NorokBranch2"
  }],
    "email": "hocomes1@delowd.com",
    "report_to": "1",
    "role": "2",
    "user_id": 2,
    "user_name": "NorokUser1"
  }
]

```

This is the code :

```
for i in res:
    # print(i)
    update_users = {"user_id":i,'user_name': res[i][0][0],'role' : res[i][0][1],
    "report_to":res[i][0][2],"email":res[i][0][3] ,"branches" : []}
    data.append(update_users)
    print(type(data))

    for j in res[i]:
        print(j)
        update_branches = {"branch_id":j[4],"branch_name":j[5]}
        ses.append(update_branches)
        # print(type(ses))
        data.append(update_branches)

```

This is the sample data :

```
{2: [('NorokUser1', '2', '1', 'hocomes1@delowd.com', 1,
'NorokBranch2')], 3: [('NorokUser2', '2', '1', 'hocomes2@delowd.com',
1, 'NorokBranch2'),  ('NorokUser2', '2', '1', 'hocomes2@delowd.com',
2, 'NorokBranch3')], 4: [('NorokUser3', '2', '1',
'hocomes3@delowd.com', 3, 'NorokBranch4')], 5: [('NorokUser4', '2',
'1', 'hocomes4@delowd.com', 1, 'NorokBranch2'), ('NorokUser4', '2',
'1', 'hocomes4@delowd.com', 2, 'NorokBranch3'), ('NorokUser4', '2',
'1', 'hocomes4@delowd.com', 3, 'NorokBranch4'), ('NorokUser4', '2',
'1', 'hocomes4@delowd.com', 4, 'NorokBranch5')]}

```