title: How to properly parse JSON with simplejson?
body: <p>I can have the following JSON string:</p>
  
  <pre><code>{ "response" : [ [ { "name" : "LA_",
            "uid" : 123456
          } ],
        [ { "cid" : "1",
            "name" : "Something"
          } ],
        [ { "cid" : 1,
            "name" : "Something-else"
          } ]
      ] }
  </code></pre>
  
  <p>or one of the following: </p>
  
  <pre><code>{"error":"some-error"}
  
  { "response" : [ [ { "name" : "LA_",
            "uid" : 123456
          } ],
        [ { "cid" : "1",
            "name" : ""
          } ],
        [ { "cid" : 1,
            "name" : "Something-else"
          } ]
      ] }
  
  { "response" : [ [ { "name" : "LA_",
            "uid" : 123456
          } ] ] }
  </code></pre>
  
  <p>So, I am not sure if all childs and elements are there. Will it be enough to do the following verifications to get <code>Something</code> value:</p>
  
  <pre><code>if jsonstr.get('response'):
      jsonstr = jsonstr.get('response')[1][0]
      if jsonstr:
          name = jsonstr.get('name')
          if jsonstr: # I don't need empty value
              # save in the database
  </code></pre>
  
  <p>Can the same be simplified?</p>