I am trying to make a string which looks like luis,philip .It having comma in between them but i have to make an array with it.I am trying with json.Parse but it is not working i am posting my code
var names = 'luis,philip' ;
var nameArray = JSON.parse("[" + names +"]");
but it showing error in json parsing ,please somebody help