0
Как сопоставить этот json?, Я пытался с несколькими аргументами на каждом, но все равно не могу получить данные.mapping deep json
{
"data" : {
"after" : "t3_qp79c",
"before" : null,
"children" : [ {
"data" : { "url" : "http://imgur.com/c0COJ" },
"kind" : "t3"
} ],
"modhash" : ""
},
"kind" : "Listing"
}
Мой код Javascript
$.getJSON(reddit_api_url,function(data) {
$.each(data.children['data'], function(i, reddit) {
// Uncomment line below to show tweet data in Fire Bug console
// Very helpful to find out what is available in the tweet objects
// console.log(reddit);
// Before we continue we check that we got data
console.log(i+' : '+ reddit);
// Build the html string for the current tweet
var tweet_html = reddit.url;
// Append html string to tweet_container div
$('#tweet_container').append(tweet_html);
});
}
Благодаря
она до сих пор не может отображать данные. я уверен, что уже пытаюсь это сделать. вот полные данные: http://pastebin.com/q9JuqXHp – damniatx
@damniatx: Опишите, какой именно результат вы хотите. –
Как получить URL-адрес Из данных Json выше?, Нет URL-адреса reddit.url – damniatx