title: How can I prevent SerializeJSON from changing Yes/No/True/False strings to boolean?
body: <p>I have a data struct being stored in JSON format, converted using the serializeJSON function. The problem I am running into is that strings that can be boolean in CF such as Yes,No,True,and False are converted into JSON as boolean values. Below is example code. Any ideas on how to prevent this?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;cfset test = {str='Yes'}&gt;
  &lt;cfset json = serializeJSON(test)&gt;
  &lt;cfset fromJSON = deserializeJSON(json)&gt;
  
  &lt;cfoutput&gt;
      #test.str#&lt;br&gt;
      #json#&lt;br&gt;
      #fromJSON.str#
  &lt;/cfoutput&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>Yes
  {"STR":true}
  YES
  </code></pre>