title: Should JSON-encoded floats from the database be enclosed in quotes?
body: <p>I have the following code:</p>
  
  <pre><code>$stmt = $db-&gt;prepare("SELECT LATITUDE, LONGITUDE FROM NODEGEOLOCATION WHERE NODEID = $i");
  $stmt-&gt;execute();
  $path[] = $stmt-&gt;fetch(PDO::FETCH_ASSOC);
  </code></pre>
  
  <p>and I use json_encode to convert this to a JSON format. However, I am getting the following JSON:</p>
  
  <pre><code>[{"route":[{"LATITUDE":"32.224519","LONGITUDE":"-110.947325"},{"LATITUDE":"32.227820","LONGITUDE":"-110.947293"},{"LATITUDE":"32.227843","LONGITUDE":"-110.943865"},{"LATITUDE":"32.230618","LONGITUDE":"-110.943919"},{"LATITUDE":"32.231755","LONGITUDE":"-110.943927"},{"LATITUDE":"32.233836","LONGITUDE":"-110.943963"},{"LATITUDE":"32.233850","LONGITUDE":"-110.946061"},{"LATITUDE":"32.236035","LONGITUDE":"-110.946061"},{"LATITUDE":"32.235993","LONGITUDE":"-110.948083"},{"LATITUDE":"32.235977","LONGITUDE":"-110.952433"}]
  </code></pre>
  
  <p>I don't want the value of LATITUDE and LONGITUDE to be enclosed in quotes. Is this even possible?</p>