title: Calling JSON.parse on php returned array, some numbers parsed as INT, others parsed as STRING
body: <p>Looking for an explanation rather than an answer here :) <br>
  I have this php script that is called with jquery's AJAX <br></p>
  <pre><code>$query = 'SELECT MONTH(PRSD#) as &quot;Monat&quot;, CAST(AVG(GASVBR) as DECIMAL(10,3)) as &quot;Gas&quot;, CAST(AVG(OLVBR) as DECIMAL(10, 3)) as &quot;Öl&quot;, CAST(AVG(STROVBR) as DECIMAL(10,3)) as &quot;Strom&quot; FROM swind.gwenergy GROUP BY YEAR(PRSD#), MONTH(PRSD#) ORDER BY MONTH(PRSD#)';
      
      $dbReturn = $database-&gt;execute($query, array());
      
      $jsonArray = array();
      
      while ($row = db2_fetch_assoc($dbReturn)) {´
          echo json_encode($jsonArray);
      }
  </code></pre>
  <p>When I call in the JS side of things:</p>
  <p><code>let parsedData = JSON.parse(jsonData);</code> <br>
  I am returned with this: <br>
  <code> {Monat: 2, Gas: '13750.607', Öl: '1447.432', Strom: '3901.051'}</code> <br>
  How come the <code>Monat</code> value is not in quotes? <br>
  I thought that maybe because the <code>$query</code> in the php script was returning <code>DECIMAL(10,3)</code> but when I replace it with <code>FLOOR(...</code> the <code>JSON.parse</code> still wrapped the value in quotes. <br> Is this related to the <code>$query</code> response, or is this a <code>JSON.parse</code> action? <br>
  Look forward to hearing other ideas :) Thanks! -Boogabooga</p>