title: serializeJSON between ColdFusion 8 and ColdFusion 10
body: <p>I have a function that returns a JSON string, and ColdFusion 10 returns a slightly different value than ColdFusion 8. </p>
  
  <p>In CF10, I get </p>
  
  <pre><code>{"ZIPCODE":90210,"PHONE":"(555) 382-6630","LAT":83,"DISTANCE":74,"NAME":"Pueblo, CO","ADDRESS":"6830 Meddley Drive","LONG":104}
  </code></pre>
  
  <p>but in CF8, I get this</p>
  
  <pre><code>{\"DISTANCE\":74,\"LAT\":83,\"ZIPCODE\":90210,\"NAME\":\"Pueblo, CO\",\"PHONE\":\"(555) 382-6630\",\"ADDRESS\":\"6830 Medley Drive\",\"LONG\":104.}
  </code></pre>
  
  <p>For the function, I have <code>returnformat</code> set to <code>JSON</code> and use <code>serializeJSON()</code> for the return value. I'm calling the function via jQuery's <code>$.ajax</code> method with <code>dataType</code> set to <code>JSON</code></p>
  
  <p>The backslashes from CF8 are causing errors in the javascript used to parse the data. Why is this happening, and is there a workaround?</p>