I am sending an api call and retrieving data in json format.
$.getJSON(weatherAPI, function(data){
// get data
});
If I call the object data
and one of its properties (data.weather
) I get the following outputs
[Object {
description: "clear sky",
icon: "xyz",
main: "clear"
}]
I can't seem to use data.weather.description
to get the desired output of "clear sky"
The whole json format data below