title: Parsing JSON with python: blank fields
body: <p>I'm having problems while parsing a JSON with python, and now I'm stuck.<br>
  The problem is that the entities of my JSON are not always the same. The JSON is something like:  </p>
  
  <pre><code>"entries":[
  {
  "summary": "here is the sunnary",
  "extensions": {
     "coordinates":"coords",
     "address":"address",
     "name":"name"
     "telephone":"123123"
     "url":"www.blablablah"
  },
  }
  ]
  </code></pre>
  
  <p>I can move through the JSON, for example:</p>
  
  <pre><code>for entrie in entries:
    name =entrie['extensions']['name']
    tel=entrie['extensions']['telephone']
  </code></pre>
  
  <p>The problem comes because sometimes, the JSON does not have all the "fields", for example, the <code>telephone</code> field, sometimes is missing, so, the script fails with <code>KeyError</code>, because the key <em>telephone</em> is missing in this entry.<br>
  So, my question: how could I run this script, leaving a blank space where <em>telephone</em> is missing?
  I've tried with:  </p>
  
  <pre><code>if entrie['extensions']['telephone']:
      tel=entrie['extensions']['telephone']
  </code></pre>
  
  <p>but I think is not ok.</p>