title: javascript float data
body: <p>Given myData is JSON var as follow:</p>
  
  <pre><code>({0:{qID:"3", id:"1", shortText:"Leisure", OpiCount:"0"}, 
    1:{qID:"3", id:"2", shortText:"Business", OpiCount:"3"}, 
    2:{qID:"3", id:"3", shortText:"University visit", OpiCount:"1"}, length:3})
  </code></pre>
  
  <p>To transform into float data array:</p>
  
  <pre><code>var data = [];
  myData.each(function(i,v) {  
      data[i] = { label: v.shortText, data: v.OpiCount } ; 
  })
  </code></pre>
  
  <p>The above code break because of the white space in <strong><code>v.shortText</code></strong>. How can I overcome this?</p>