I'm trying to loop over a JSON object to check if some entries already exists. my JSON object is like this
[
{
"title": "scname",
"html": "<div><iframe src=/scenario/test3dxblock.0/ width=\"400\" height=\"500\"></iframe></div>",
"description": "desc",
"status": "417"
},
{
"title": "test3dxblock.0",
"html": "<div><iframe src=/scenario/test3dxblock.0/ width=\"400\" height=\"500\"></iframe></div>",
"description": "desc",
"status": "417"
},
{
"title": "filethumbs.0",
"html": "<div><iframe src=/scenario/filethumbs.0/ width=\"400\" height=\"500\"></iframe></div>",
"description": "desc",
"status": "417"
}
]
I need to iterate through that and retrieve the title to check if it matches the entries wich i will be adding to this object in case it does not already exists
i'm using requests to generate this object
r = requests.get('http://iframe.ly/api/oembed?url=' + url + '&api_key=' +settings.IFRAMELY_KEY)
json = r.json()
i've found some answers but nothing seems to do the job, how can i do that ? Thanks