title: Uncaught SyntaxError: Unexpected token h error for json option passed as param to a function
body: <p>JSON Array:</p>
  
  <pre><code> var data= '[{"id":"1","text":"B.Sc"},{"id":"2","text":"M.Pharm"},{"id":"3","text":"M.Tech"},{"id":"4","text":"BBM"},{"id":"6","text":"MCA"},{"id":"10","text":"PGDMA"},{"id":"11","text":"Diploma"},{"id":"12","text":"Plus Two"},{"id":"14","text":"fdf"},{"id":"15","text":"dfdf"},{"id":"16","text":"alert("hi");"},{"id":"1235","text":"B.Tech"},{"id":"10001","text":"MBA"}]';
  selectParams['data'] =  jQuery.parseJSON(data); // errors happens here
  </code></pre>
  
  <p>I tried in <a href="http://www.jsoneditoronline.org/" rel="nofollow">http://www.jsoneditoronline.org/</a> and its throwing error as well.</p>
  
  <p>The problem is with ("") double quotes within the JSON array.</p>
  
  <p>I tried several options but nothing works. How can we parse JSON array with this structure like having double quotes and single quotes as values.</p>
  
  <p>Any help is appreciated</p>