title: django/python reading json?
body: <p>I'm trying to learn django/python and I'm trying to figure out how to read json data...</p>
  
  <p>I have something like :</p>
  
  <pre><code>{
    region: {
      span: {
         latitude_delta: 0.08762885999999526,
         longitude_delta: 0.044015180000002374
      },
      center: {
         latitude: 37.760948299999995,
         longitude: -122.4174594
      }
    },...
  }
  </code></pre>
  
  <p>I'm trying to read specific data in my html page. Right now this json data is being displayed in the html page.</p>
  
  <p>The source of the this json comes from this:</p>
  
  <pre><code>return HttpResponse(json.dumps(response),mimetype="application/json")
  </code></pre>
  
  <p>I'm trying to figure out the django/python convention of getting specific data? Am I supposed to do a for each loop? I come from a self taught php background, and I'm trying to teach myself python/django.</p>
  
  <p>Thank you</p>
  
  <p>edit:</p>
  
  <p>I also have this in my view.py before the return HttpResponse</p>
  
  <pre><code>    try:
          conn = urllib2.urlopen(signed_url, None)
          try:
              response = json.loads(conn.read())
          finally:
              conn.close()
      except urllib2.HTTPError, error:
          response = json.loads(error.read())
  </code></pre>