title: Consuming JSONP with PHP returns object not results
body: <p>My JSONP response from a remote domain is:</p>
  
  <pre><code>jQuery183012824459988766945_1354016515353([{"StudentID":"BA1122","LastName":"BAG","FirstName":"RON"},{"StudentID":"B770","LastName":"BAEN","FirstName":"AI"},{"StudentID":"B994","LastName":"BALD","FirstName":"AARON"},{"StudentID":"B580","LastName":"Balzstin","FirstName":"Manda"},{"StudentID":"B932","LastName":"BAR","FirstName":"ABBAS"},{"StudentID":"B139","LastName":"BANES","FirstName":"ALAN"},{"StudentID":"B718","LastName":"Baen","FirstName":"Alex"},{"StudentID":"B524","LastName":"BAER","FirstName":"ANA"}])
  </code></pre>
  
  <p>I'm trying to consume the data with:</p>
  
  <pre><code>$.getJSON('http://www.remote_domain.com/json.php?callback=?',function(res){
      ParseJson(res);
      function ParseJson(data){
          for (var key in data) {
              if (data.hasOwnProperty(key)) {
                  alert(key + " -&gt; " + data[key]);
              }
          }
      }
  });
  </code></pre>
  
  <p>I seem to not get the data just the object?</p>
  
  <p>UPDATE:</p>
  
  <pre><code> $num_columns = $rs-&gt;Fields-&gt;Count ();
   $arrColumns = array();
  
   for ($i=0; $i &lt; $num_columns; $i++) {
           $arrColumns[] = $rs-&gt;Fields($i);
           $newArr[] = $rs-&gt;Fields($i)-&gt;name; 
   }
  
   $arrResult = array();
  
   while (!$rs-&gt;EOF) {
       $arrRow = array();
       for ($i=0; $i &lt; $num_columns; $i++) {
          $arrRow[$newArr[$i]] = $arrColumns[$i]-&gt;value;
       }
       $arrResult[] = $arrRow;
  
       $rs-&gt;MoveNext();
   }
  
   echo $_GET['callback'] . '(' . json_encode($arrResult) . ')';
  </code></pre>
  
  <p>My JSON gets returned like: [{"First":"John"},{"Last":"Doe"}] An array wrapped in an object. I need to return either an object or an array so I can handle in my client side like: {"First":"John"},{"Last":"Doe"}</p>
  
  <pre><code>&lt;script&gt;
      $.getJSON('http://remote.domain.com/json.php?callback=?',function(res){
          alert('Results: '+res.Last);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I think it might be the way I'm json_encode($Array); and not using a class?</p>