I\'m using Python to parse through some JSON data for specific values. Specifically I want to pull the following:
It's exactly as the error says. fields['events'] is a list, so you can't index it with ['public']. You need to iterate through the values, each of which is a dictionary.
fields['events']
['public']
for event in fields['events']: print event['public']