javascript explode to array code example
Example 1: javascript explode
//split into array of strings.
var str = "Well, how, are , we , doing, today";
var res = str.split(",");
Example 2: explode array inside string javascript
var getValue = '["1","2"]';
var obj = JSON.parse(getValue) //obj is now ["1", "2"]