I'm receiving the following error
TypeError: string indices must be integers
when I'm trying to print some data that is within a nested dictionary
{u'id': u'000123', u'payload': u"{'account_title': u’sam b’, 'phone_num': ‘1234567890’, 'security_pin': u'000000', 'remote_word': u’secret123’, 'email_address': ‘email@gmail.com’, 'password': u’password123’}”}
For example, let's say the above was assigned to the variable 'account_info'
print(account_info['payload'])
<- will print everything from 'payload' onwards
but when I use:
print(account_info['payload']['email_address'])
I get the error
TypeError: string indices must be integers
Any ideas? Thanks!