I'm iterating over a JSON object, then adding each result I get to an array but for each result that gets added to the array, they array is then cleared then it moves down the list of results.
Here's the code I used to get this issue:
for e in loadedJson['posts']['entities']:
print(e)
titles = []
titles.append(e)
print(titles)

titles = []in each iteration. So what's the problem?titles=[]before the loop, that's it