javascript - Json - get specific field -


i need field source json solution not working !!

this json:

"trailers":{       "quicktime":[],       "youtube":[{                  "name":"bandeannonce",                  "size":"hd",                  "source":"rqeuam9fsrg",                  "type":"trailer"                 }]  } 

i try source :var link_trailer = data.trailers[0].youtube[0].source; not working me !!

trailers object, don't need use index.

var link_trailer = json.parse(data).trailers.youtube[0].source;


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -