Convert JSON string to Javascript array [duplicate]

Solution 1:

var obj = $.parseJSON('[["1","aaaaaa","1"],["2","bbbbbbb","2"],["3","ccccccc","3"]]')

Assuming jquery is ok to use because of tag.

Solution 2:

If the browzer has the JSON object then

JSON.parse(string);

or if you have jQuery

$.parseJSON(string);

Solution 3:

var array = JSON.parse(my_JSON)