How to load this type of data
How to load this type of data
{
"filters": {},
"competition": {
"id": 2014,
"area": {
"id": 2224,
"name": "Spain"
},
"name": "Primera Division",
"code": "PD",
"plan": "TIER_ONE",
"lastUpdated": "2021-04-11T19:43:43Z"
},
"season": {
"id": 635,
"startDate": "2020-09-13",
"endDate": "2021-05-23",
"currentMatchday": 30,
"winner": null
},
"standings": [
{
"stage": "REGULAR_SEASON",
"type": "TOTAL",
"group": null,
"table": [
{
"position": 1,
"team": {
"id": 78,
"name": "Club Atlético de Madrid",
"crestUrl": "https://crests.football-data.org/78.svg"
},
"playedGames": 30,
"form": "L,W,D,W,D",
"won": 20,
"draw": 7,
"lost": 3,
"points": 67,
"goalsFor": 52,
"goalsAgainst": 20,
"goalDifference": 32
},
]
},
i want to display only "Standings" data
This discussion has been closed.
Answers
Use the
ajax.dataSrcproperty and set it to bestandings. See also this part of the manual for loading the properties from the objects in the array.Allan
i did i'm still cant able to access standigs.table
Take a look at the nested objects example. If this doesn't help please post your Datatables init code so we can see what you are trying.
Kevin