how to access json array of objects using foreach loop in javascript and jade -


i using foreach loop show data of jason array take 5 iterations show data want show data in single iteration. how can so? here jade file code.

each item in data

                td                      a.three(href='')                         |#{item} 

in first iteration item contains :"youtube#searchlistresponse".

in second iteration item contains : " \"bdc7vthym9nfosqm1_koyhtjtew/0mx1aovxl6jrpz_tgqxlq_yhgwi\"".

in third iteration item contains :"caiqaa".

i want access id or thumbnail in first iteration returns error. how can access in first iteration using above jade code? possible or not? here link of jason array ( https://gist.github.com/paulomcnally/620b76a9afe81f56e8c9 )

you have parse array first using json.parse(json["items"]) access data if want specific index json_array[0]["id"] or json_array[0]["snippet"]["thumbnails"]


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -