title: Getting values from JSON using Python
body: <p>While I am trying to retrieve values from JSON string, it gives me an error:</p>
  
  <pre><code>data = json.loads('{"lat":444, "lon":555}')
  return data["lat"]
  </code></pre>
  
  <p>But, if I iterate over the data, it gives me the elements (<code>lat</code> and <code>lon</code>), but not the values:</p>
  
  <pre><code>data = json.loads('{"lat":444, "lon":555}')
      ret = ''
      for j in data:
          ret = ret + ' ' + j
  return ret
  </code></pre>
  
  <p>Which returns: <code>lat lon</code></p>
  
  <p>What do I need to do to get the values of <code>lat</code> and <code>lon</code>? (<code>444</code> and <code>555</code>)</p>