Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

explode array inside string javascript

var getValue = '["1","2"]';
var obj = JSON.parse(getValue) //obj is now ["1", "2"]
 
PREVIOUS NEXT
Tagged: #explode #array #string #javascript
ADD COMMENT
Topic
Name
6+6 =