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
Post a Comment