Convert list of dicts to string
- by John
I'm very new to Python, so forgive me if this is easier than it seems to me.
I'm being presented with a list of dicts as follows:
[{'directMember': 'true',
'memberType': 'User', 'memberId':
'[email protected]'},
{'directMember': 'true', 'memberType':
'User', 'memberId':
'[email protected]'},
{'directMember': 'true', 'memberType':
'User', 'memberId':
'[email protected]'}]
I would like to generate a simple string of memberIds, such as
[email protected],
[email protected],
[email protected]
but every method of converting a list to a string that I have tried fails because dicts are involved.
Any advice?