Home > Net >  returning undefined JSON on weather API
returning undefined JSON on weather API

Time:11-15

I am trying to create a google sheet that will fetch live data from openweather.org , I have managed to fetch live min and max temp, however everytime I am trying to access the ["weather"]["main"] it's returning "undefined" can please someone help me? what am I doing wrong?enter image description here

enter image description here

CodePudding user response:

Try

resJson.weather[0].main

or

resJson['weather'][0]['main']
  • Related