title: PHP json_encode extra quote before array square bracket
body: <p>I intend to generate JSON that's like this:</p>
  
  <p>{
  "stores": [{"Name":"abc","Phone","1234567"},{"Name":"def","Phone","1111111"}],
  "numResults": 2
  }</p>
  
  <p>My php code is like this:</p>
  
  <pre><code>       while($row = mysql_fetch_assoc($result)){
              $store[] = $row;
              $k++;
         }
         $obj['stores'] = json_encode($store);           
         $obj['numResult'] = $numResult;           
         echo stripslashes(json_encode($obj));
  </code></pre>
  
  <p>However the result seems to have an extra pair of double quotes around the square brackets:</p>
  
  <p>{
  "stores": "[{"Name":"abc","Phone","1234567"},{"Name":"def","Phone","1111111"}]",
  "numResults": 2
  }</p>
  
  <p>How can I remove them? (Or is what's actually showing suppose to be the correct JSON formatting?)</p>
  
  <p>Thanks!</p>