title: How to keep value as number in JSON.stringify()
body: <p>I'm trying to use <code>JSON.stringify()</code> to parse some values into JSON format. That <code>amount</code> is a string variable.I want the final value in JSON format as a number, but my current way doesn't work. It still comes out as <code>"price":"1.00"</code> after <code>JSON.stringify()</code> . How do I make sure the final value in JSON is a number? Thanks for your help! </p>
  
  <p>My current code:</p>
  
  <pre><code>var data = JSON.stringify({
   "payer": "a cat",     
   "price": parseFloat(amount).toFixed(2),
  
  });
  </code></pre>