So, I'm aware that the term "object" might have a different meaning in gdscript then it has in web development (vue/javascript) where I usually work. Which is why I have been having a hard time framing the question appropriately. I think the best way to explain what I am asking would just be to show you want I want to do. This is what I would want:
array = [
{name: Jack, age: 21},
{name: Jill, age: 24},
{name: Trump, age: 7}
]
return array[0] = {jack, 21}
As I understand it arrays in gdscript can't do this? Or can they and I just don't know how? And if they can't is there something else that I can use to do this instead of arrays?
Edit: Actually never mind. I figured it out. I just forgot to put the labels in quotes, lol. This is how you do it:
array.append({"name": "Jack", "age": 21})