title: json first index value get in jquery
body: <p>I am generating JSON via an Ajax loop which I am successfully iterating and getting results. I need only the first index value of JSON which is <code>name</code>
  and I am doing this as in jQuery:</p>
  
  <h2>PHP</h2>
  
  <pre><code> $jsonRows[] = array(
              "name" =&gt; $result['name'],
              "datetime" =&gt; $result['datetime'],
              "place" =&gt; $result['place'],
  
          );
  print_r(json_encode($jsonRows));
  </code></pre>
  
  <p>suppose the values are coming:  </p>
  
  <pre><code>name: raj,
  datetime: 2013-03-01 16:50:21,
  place: India
  
  name: jatin,
  datetime: 2013-03-01 20:50:21,
  place: US
  
  name: raman,
  datetime: 2013-03-03 01:50:21,
  place: Japan
  </code></pre>
  
  <p>I need only <code>name: raj</code> but I am not getting this value:</p>
  
  <h2>JavaScript</h2>
  
  <pre><code>$.each(response, function(i, item) {
         alert(item(0).name);
      });
  </code></pre>
  
  <p><strong>error:  object is not a function</strong></p>