I have a JSON array that I\'m cleaning up in Python. I want to remove the imageData property:
imageData
data.json
[{\"title\": \"
If not all the elements have an imageData key, then using del will cause an KeyError exception. You could guard against that by using pop with a default:
del
KeyError
pop
for item in data: item.pop('image', None)