title: Remove quotation marks from values in JavaScript Array Object
body: <p>I am trying to get my JSON encoded array formatted properly.  Here is my PHP MySQL Query:</p>
  
  <pre><code>$query = "SELECT date, value1, value2
              FROM testdata
              ORDER BY date ASC";  
  
  
           $result = mysql_query($query);
           $myChartData = array();
            while($row = mysql_fetch_assoc($result)){
              $myChartData[] = $row;
                          }
  
     &lt;script type="text/javascript"&gt;
      var chartData = &lt;?php echo json_encode($myChartData); ?&gt;;
  </code></pre>
  
  <p>From the console, the object looks like this:</p>
  
  <pre><code>[Object { date="2011-02-23", value1="133034", value2="12105.78"},
   Object { date="2011-02-24", value1="122290", value2="12068.50"},
   Object { date="2011-03-08", value1="453142", value2="12214.38"}]
  </code></pre>
  
  <p>The quotation marks around the date stays, but the ones on value1 and value2 need to be stripped out.</p>
  
  <p>Self-teaching noob at all of this...Thanks for your help!</p>