Given the below response, how would I get things like title?
jsonFlickrFeed({
"title": "Thing",
"link": "http://www.flickr.com/photos/tags/",
"description": "",
"items": [
{
"title": "Title",
"link": "http://www.flickr.com/photos/123",
"media": {"m":"http://farm6.staticflickr.com/123.jpg"},
},
{
"title": "Title2",
"link": "http://www.flickr.com/photos/1234",
"media": {"m":"http://farm6.staticflickr.com/1234.jpg"},
},
})
I want to do something like:
for (var i=0; i<xml.responseText.length;i++) {
var x = (xml.responseText.items.title[i]);
document.write(x)
}
What am I doing wrong here?