title: Doubt with json response
body: <p>I have this code:</p>
  
  <pre><code>$.getJSON('../encomendasanexos.php?campo=idencomendas&amp;nome=imagem&amp;id='+id_int,
       function(registro){ 
          var imghtml = []; 
          imghtml = '&lt;img src="icones/editar.png" 
            onclick="window.open(\'editImagem.php?
            tabela=anexos&amp;id='+registro.id+'&amp;ordem='+registro.i+'\', \'_blank\', \'width=750,height=550,scrollbars=no,status=yes\' );" /&gt;'; 
          $this.parent().find("#conteudoanexo").html(imghtml,join('')); 
  });
  </code></pre>
  
  <p>And the returned json:</p>
  
  <pre><code>[{"id":"400","img":"..\/imagens\/encomendas\/aspire_1309790504.jpg"}, 
  {"id":"401","img":"..\/imagens\/encomendas\/casa_1309790507.jpg"},   
  {"id":"402","img":null}]
  </code></pre>
  
  <p>I wanna do a for loop with values received by json, where <code>+registro.id+</code> is id and <code>+registro.i+</code> is a key in 1st json array level.</p>