I have a multidimensional array:
result = {
{
data = {
language = "English",
name = "Freak Out",
list = {
{
type = "songs",
album = "1234"
}, {
type = "songs",
album = "4234"
}, {
type = "songs",
album = "5829"
}
}
}
}
}
How do I dynamically access the list in this array?
This code is printing first album (1234):
for i, v in pairs(result) do print(v.data.list[1].album) end
I want to print all albums with their type. How do I do this?