I have an object like this coming back as a JSON response from the server:
{\"0\":\"1\",\"1\":\"2\",\"2\":\"3\",\"3\":\"4\"}
I want to conv
var json = '{"0":"1","1":"2","2":"3","3":"4"}'; var parsed = JSON.parse(json); var arr = []; for(var x in parsed){ arr.push(parsed[x]); }
Hope this is what you're after!