May-14-2020, 06:34 AM
originalJSON
is a python object.On line 10 you modify the object. On line 11, you append the object to your list. But none of these operations makes a copy. All 4 items in the list are the same object.
Probably you want to make a copy of it at the time you append.
myOutput.append(copy.copy(originalJSON))