I have a dictionary object called obj_1 and it’s values are shown like this:
{u'd':{u'results': [{u'Desc':u'This is a description...',
u'Title':u'This is a title...',
u'data': {u'Url': u'www.site.com'}},
{u'Desc':u'This is a description...',
u'Title':u'This is a title...',
u'data': {u'Url': u'www.site.com'}}]
}}
This is decoded json (decoded using the requests module decoder). How do I extract the u'Title' values and the URL values only? I haven’t seen any dictionary types like this in any of the tutorials.
Assuming tyour “obj_1” really looks like this:
Then its a as simple as: