response = "{"Body":{"ItemRanking":{"Items": ..."
json = JSON.parse(response)
url = json["Body"]["ItemRanking"]["Items"]["Item"][0]["affiliateUrl"] rescue nil