I'm receiving following data from DynamoDB as a response to client scan API call.

```
Data = [{'id': {'S': '5'},
         'FirstName': {'S': 'Prashanth'},
         'LastName': {'S': 'Wadeyar'},
         'ClientName': {'S': 'Test'}}]

```

I want to handle this response and get the output as 

```
{'FirstName':'Prashanth', 'LastName': 'Wadeyar', 'ClientName': 'Test'}

```

I can handle it by separating it like

```
for field_obj in data:
    obj = (field_obj['FirstName'])

```

but to get value of Firstname, Key 'S' may differ for each object. like boolean string, list etc.

is there a easy way to get the key and value pairs.