When I make an api call, the data is returned to me in json format.
$.getJSON(weatherAPI, function(data){
// obtain data
});
Upon accessing the object data
and one of its properties (data.weather
), the output received is as follows:
[Object {
description: "clear sky",
icon: "xyz",
main: "clear"
}]
Despite trying to access data.weather.description
, I am unable to retrieve the specific output "clear sky"
The complete json formatted data can be found below