title: javascript split and JSON.parse
body: <p>I want to parse array in JSON format using javascript. I have written following code.</p>
  
  <pre><code>var data = "abc, xyz, pqr";
  var data_array = data.split(',');
  
  var data_parsed = JSON.parse(data_array);
  alert(data_parsed);
  </code></pre>
  
  <p>It gives me the error of JSON.parse
  I have no idea how to resolve this javascript error.</p>