I have the following model attributes:
[{
"id": 1,
"details": {
"name": "Sun Tzu",
"height": "180",
},
"lists": [
[{
"coworkers": "company cool",
"friends": "School",
}],
[{
"coworkers": "company nice",
"friends": "Childhood",
}]
]
}]
Yes, I know it is confusing but I am trying to understand nested models.
I want to display in a view (a table row), all the friends
of id:1
model.
For example: School, Childhood
.
How do I do that? Thanks in advance!