var str = "3.2,2.7,6.44,2.28,[3.11,2,1],7.3,0.11,[1.1,2.887],1.1"; console.log(JSON.parse('[' + str + ']'));