I have the following structure to edit, and I am not sure how to do it. E.g. I need to rename 'Email' into 'emails' and have only email address in the value.
{'input_text': 'some text',
'lang': 'eng',
'response': {'Certification': [{'CertificationName': 'some_name'}],
'Email': [{'Address': 'someaddress@gmail.com', 'Label': 'personal'}],
'ExecutiveSummary': ' text',
'FamilyName': 'Smith',
'FormattedName': 'John',
'GivenName': 'John'}
}
This is what I would like
{'input_text': 'some text',
'lang': 'eng',
'response': {'Certification': [{'CertificationName': 'some_name'}],
'emails': ['someaddress@gmail.com'],
'ExecutiveSummary': ' text',
'FamilyName': 'Smith',
'FormattedName': 'John',
'GivenName': 'John'}
I have had a look at similar questions and some documentation, but still can't figure it out.