Dec-10-2020, 04:11 PM
You can use the JSON module to read that into a python object.
At that point, the easiest thing might be to just copy everything in ticker_tape_1 to a new list, but leave out the elements you don't want.
At that point, the easiest thing might be to just copy everything in ticker_tape_1 to a new list, but leave out the elements you don't want.
tt1 = mydata["ticker_tape_1"] mydata["ticker_tape_1"] = [x for x in tt1 if x.get("id") != 1]