How do I access the name of an item in an Object Literal using jQuery?
For example how would I read \"title\", \"link\", \"media\", ect... in this
{
var testObject = {
"title": "What we do in our free time...",
"link": "http://www.flickr.com/photos/tnhimmies/4042938515/",
"media": {"m":"http://farm3.static.flickr.com/2572/4042938515_3a00561320_m.jpg"},
"date_taken": "2009-10-24T03:48:10-08:00",
"description": "Darlene, TN Persians (www.tnpurrs.com)<\/a> posted a photo:<\/p>
if it is single object then you can access this by testObject.tags or testObject.title ... like this
or you can iterate by
$.each(obj,function(key,value){
///
});