I want to search an array if it contains an variable "Foo"
details={u'firstName': u'Test', u'activeSubscriptions': [{u'productCode': u'BBB', u'name': u'Bar'}, {u'productCode': u'FFF', u'name': u'Foo'}
I have done like this:
subscriptions_name = data['activeSubscriptions'][0]['name']
but this only works for the first data in the array.
How could I get the name of FFF if the data is not placed consistently?
FFFor do you want to check value ofnamefor alldictsinactiveSubscriptions?dict.