Myd is below

```
{ 'Owner': [ { 'id': '1', 'name': 'John', 'contactEmail': 'john@nif.com', 'role': 'Owner' }, { 'id': '2', 'contactName': 'Work', 'contactEmail': 'work@nif.com', 'role': 'Owner' } ], 'Manager': [ { 'id': '1', 'name': 'John', 'contactEmail': 'john@nif.com', 'role': 'Manager' } ] }

```

* Extract `id` to outside
* Add entire dictionary into a new key called `'employee'`
* For the same key role are there in two different keys merge to one
* id=1 role is present as Owner and Manager, output will `role:['Manager', 'Owner']`

Expected out

```
{ 'employee': { '1': { 'email': 'john@nif.com', 'name': 'John', 'role': [ 'Owner', 'Manager' ] }, '2': { 'email': 'work@nif.com', 'name': 'Work', 'role': [ 'Owner' ] } } }

```

```
emp = {}
for key,val in event.items():
    for each in val:
        # [{'employee': key, **val} for key, val in event.items()] if event else []
        emp['employee'] = each['id']
        emp['name'] = each['name']

```

using python native method