When I retrieve JSON data in my controller using $http.get, it looks like this:
$http.get('http://webapp-app4car.rhcloud.com/product/feed.json').success(function(data)
The retrieved data is in JSON format and I need to access the value corresponding to a specific key. The key is stored in a variable called "key". How can I access the value when "data.key" doesn't work due to the key being a variable?