title: How to walk through json response?
body: <p>I have this json response and I'm trying to walke thought it to get the weather conditions such as "humidity" and "temp_C" and so on. I tried some ways but didn't work.</p>
  
  <pre><code>({ "data" : { "current_condition" : [ { "cloudcover" : "50",
              "humidity" : "44",
              "observation_time" : "12:10 AM",
              "precipMM" : "0.0",
              "pressure" : "1013",
              "temp_C" : "-2",
              "temp_F" : "29",
              "visibility" : "16",
              "weatherCode" : "116",
              "weatherDesc" : [ { "value" : "Partly Cloudy" } ],
              "weatherIconUrl" : [ { "value" : "http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0004_black_low_cloud.png" } ],
              "winddir16Point" : "W",
              "winddirDegree" : "280",
              "windspeedKmph" : "24",
              "windspeedMiles" : "15"
            } ],
        "request" : [ { "query" : "Rochester, United States Of America",
              "type" : "City"
            } ],
        "weather" : [ { "date" : "2012-02-25",
              "precipMM" : "2.2",
              "tempMaxC" : "-1",
              "tempMaxF" : "31",
              "tempMinC" : "-5",
              "tempMinF" : "24",
              "weatherCode" : "116",
              "weatherDesc" : [ { "value" : "Partly Cloudy" } ],
              "weatherIconUrl" : [ { "value" : "http://www.worldweatheronline.com/images/wsymbols01_png_64/wsymbol_0002_sunny_intervals.png" } ],
              "winddir16Point" : "W",
              "winddirDegree" : "281",
              "winddirection" : "W",
              "windspeedKmph" : "54",
              "windspeedMiles" : "34"
            } ]
      } })
  </code></pre>
  
  <p>I tried these:</p>
  
  <pre><code>$.getJSON(urlFromMyAPI, function (data) {
      alert(data.current_condition.temp_C);
      alert(data.temp_C);
      alert(data[current_condition].temp_C);
      // I also use loop
      for (i = 0; i &lt;= 3; i++) {
          alert(data.current_condition[i])
      }
  });
  };
  </code></pre>