var objects = [[“name”:“Robert”, “time”: “12:20”], [“name”: “George”, “time” : “2:30”]]
objects[[“name”] = “James”, [“time”] = “6:55”]
var objects = [[“name”:“Robert”, “time”: “12:20”], [“name”: “George”, “time” : “2:30”]]
objects[[“name”] = “James”, [“time”] = “6:55”]
You’ve initialised objects
as an array of dictionaries. Was that your intent? If you’re adding a new dictionary to the array, you’d use objects.append(["name": "James", "time": "6:55"])
.
oh THANK YOU SO MUCH. I do not understand why I did not grasp this.
THANK YOU AGAIN
robert