¡@

Home 

2014/10/16 ¤W¤È 12:07:07

jquery Programming Glossary: res.comments.data

how to get json data in jquery

http://stackoverflow.com/questions/7538171/how-to-get-json-data-in-jquery

.html html my current code does get res.from.name res.comments.count but it does not get data inside comments i.e. res.comments.data. how can I achieve it here is my actual json file. The above one I gave was example. here it goes data id 7234234234_32423432.. or somewhere else. I have local .json file and from there I get data. The object which it says is undefined is res.comments.data . here is my whole code function var newsfeed_url json_data newsfeed.json var html ul .getJSON newsfeed_url function d .each.. class '' Link action.link li html li Comments res.comments.count li html li Likes res.likes.count li html li Comments res.comments.data li alert res.comments.data .each res.comments.data function j comment alert comment.message html li class '' comment.message..