I'm struggling to extract specific data from a JSON object.
While I can successfully retrieve data located outside the brackets, I am unable to access any information from within them.
My goal is to extract the "summonerName"
field below:
"gameId": 2016761444,
"mapId": 11,
"gameMode": "CLASSIC",
"gameType": "MATCHED_GAME",
"gameQueueConfigId": 4,
"participants": [
{
"teamId": 100,
"spell1Id": 4,
"spell2Id": 12,
"championId": 57,
"profileIconId": 615,
"summonerName": "Wolves Weekend",
"bot": false,
"summonerId": 22951400,
]
},
There are a total of 9 other 'participants' objects.
This is my current approach:
div(ng-repeat='data in info.display')
p(ng-model='info.IdBox') {{data.id}}
p Level: {{data.summonerLevel}}
p Champion: {{data.championId}}
{{info.matchInfo}}
ul
div(ng-repeat='participant in info.matchInfo')
p Name: {{matchInfo.participants[participant].summonerName}}
While basic calls work without issue...
Any suggestions?
Appreciate your help~