JSFiddle - React, Tailwind, and code Playground

by ThiefMaster

JavaScript

var obj = {
    "item": [
        {
        "title": "TitleA",
        "link": "http://www.abc.html?partner=rss&emc=rss",
        "guid": {
            "-isPermaLink": "true",
            "#text": "www.abc.html"
        },
        "atom:link": {
            "-rel": "standout",
            "-href": "http://www.abc.html?partner=rss&emc=rss"
        },
        "media:content": {
            "-url": "standard.jpg",
            "-medium": "image",
            "-height": "75",
            "-width": "75"
        },
        "media:description": "This is the description.",
        "media:credit": "Reuters",
        "description": "In depth description",
        "dc:creator": "By test creator",
        "pubDate": "Sun, 21 Oct 2012 11:29:12 GMT",
        "category": "World"

        },
    {
        "title": "TitleB",
        "link": "http://www.abc.html?partner=rss&emc=rss",
        "guid": {
            "-isPermaLink": "true",
            "#text": "www.abc.html"
        },
        "atom:link": {
            "-rel": "standout",
            "-href": "http://www.abc.html?partner=rss&emc=rss"
        },
        "media:content": {
            "-url": "standard.jpg",
            "-medium": "image",
            "-height": "75",
            "-width": "75"
        },
        "media:description": "This is the description.",
        "media:credit": "Reuters",
        "description": "In depth description",
        "dc:creator": "By test creator",
        "pubDate": "Sun, 21 Oct 2012 11:29:12 GMT",
        "category": "World"

        }
    ]
};

alert(obj.item[0]['media:content']['-url']);