javascript - How to call an array inside an array in JSON -


i hvae json file as

{"years":[             {"year":"2006","projects":[                             {"title":"year 10","place":"some school, place","desc":"score - score%"},                             {"title":"year 12","place":"some school, place","desc":"score - score%"}             ]},             {"year":"2008"},             {"year":"2009"},             {"year":"2010"},             {"year":"2011"},             {"year":"2012"},             {"year":"2013"}         ] } 

i trying fetch "title":"year 10" using timeline.years[0].projects[0].title in javascript. works way if have single array not array within array. please me correct way write it?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -