title: How to decode JSON object and iterate over it?
body: <p>In <a href="https://stackoverflow.com/questions/6255802/why-does-this-error-occur">this</a> post I learned how to encode an object on the server side, and now I would like to decode it on the client side.</p>
  
  <p>On the client side I do</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: "/cgi-bin/ajax_sort.pl",
      contentType: "application/json; charset=utf-8",
      dataType: "json",
  
      data: { "column" : this.id },
  
      error: function(XMLHttpRequest, textStatus, errorThrown) {
          showError('responseText: ' + XMLHttpRequest.responseText);
          showError('textStatus: ' + textStatus);
          showError('errorThrown: ' + errorThrown);
      },
  
      success: function(result){
          if (result.error) {
              showError(result.error);
          } else {
  
          var obj = jQuery.parseJSON(result);
  
          }
      }
  });
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Does <code>obj</code> now contain the decoded JSON data?</p>
  
  <p>If so, the object looks like this one the server side (output from Perl's <code>Data::Dumper</code>)</p>
  
  <pre><code>$VAR1 = {
            '127' =&gt; {
                       'owners' =&gt; [
                                     'm'
                                   ],
                       'users' =&gt; [
                                    'hh',
                                    'do'
                                  ],
                       'date_end' =&gt; '24/05-2011',
                       'title' =&gt; 'dfg',
                       'date_begin' =&gt; '24/05-2011',
                       'members_groups' =&gt; [],
                       'type' =&gt; 'individuel'
                     },
            '276' =&gt; {
                       ...
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Is <code>obj</code> indeed contains the decoded JSON, how do I iterate over the object?</p>