my first time trying to make an api request and get some data is not going to well.
I'm trying to find the "seed":"1" value and get the "franchise_id" value of "0010"
I haven't been successful even getting any of the seeds to console.log
Here is json
{
"version":"1.0",
"playoffBracket":{
"bracket_id":"1",
"playoffRound":[
{
"week":"14",
"playoffGame":[
{
"game_id":"1",
"away":{
"franchise_id":"0002",
"points":"137.2",
"seed":"3"
},
"home":{
"franchise_id":"0008",
"points":"111.7",
"seed":"6"
}
},
{
"game_id":"2",
"away":{
"franchise_id":"0006",
"points":"134.2",
"seed":"4"
},
"home":{
"franchise_id":"0011",
"points":"130.5",
"seed":"5"
}
}
]
},
{
"week":"15",
"playoffGame":[
{
"game_id":"3",
"away":{
"franchise_id":"0006",
"points":"153.3",
"winner_of_game":"2"
},
"home":{
"franchise_id":"0010",
"points":"162.8",
"seed":"1"
}
},
{
"game_id":"4",
"away":{
"franchise_id":"0002",
"points":"95.5",
"winner_of_game":"1"
},
"home":{
"franchise_id":"0012",
"points":"201.7",
"seed":"2"
}
}
]
}
]
},
"encoding":"utf-8"
}
i can log all the data , or some of the inner data , but haven't been able to do much else
$.ajax({
url: "apiurlhere",
success: function (data) {
console.log(data);
console.log(data.playoffBracket);
console.log(data.playoffBracket[0]);
}
});