title: how to parse json data in html page
body: <p>how to parse json data,i need to display each and every data inside a div element. I am using world weather online api service to access weather data</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="text" id="in"&gt;&lt;/input&gt;
      &lt;input type="hidden" id="keys" value="api"&gt;&lt;/input&gt;
      &lt;input type="hidden" value="json" id="format"&gt;&lt;/input&gt;
      &lt;button id="go"&gt;Search&lt;/button&gt;
     
      &lt;script&gt;
          $(document).ready(function(){
              $("#go").click(function(){
                  var apikey = $("#keys").val();
                  var q = $("#in").val();
                  var format = $("#format").val();
  
                  jQuery.ajax({
                      url: 'http://api.openweathermap.org/data/2.5/weather?key=' + apikey + '&amp;q=' + q + '&amp;format=' + format,
                      success: function(response) {
                          var obj = JSON.parse(response);
                          console.log(obj);
                      },
                  });
              });
          });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Example output for berlin:</p>
  
  <p><code>http://api.openweathermap.org/data/2.5/weather?key=api&amp;q=berlin&amp;format=json</code></p>
  
  <pre><code>{"coord":{"lon":13.41,"lat":52.52},"sys":{"message":0.0826,"country":"DE","sunrise":1433386009,"sunset":1433445756},"weather":[{"id":800,"main":"Clear","description":"Sky is Clear","icon":"01d"}],"base":"stations","main":{"temp":290.628,"temp_min":290.628,"temp_max":290.628,"pressure":1037.43,"sea_level":1043.19,"grnd_level":1037.43,"humidity":81},"wind":{"speed":2.42,"deg":314.504},"clouds":{"all":0},"dt":1433424243,"id":2950159,"name":"Berlin","cod":200}
  </code></pre>