Looking to convert a JSON object from
{"0":"sometext","1":"someothertext"}
into a JavaScript array where the index corresponds to the integer and the data at that index is the string. Attempting to use JSON.parse() did not yield the desired result, as shown here.
var json = '{"0":"sometext","1":"someothertext"}';
var obj = JSON.parse(json);
// Trying to assign a part of the object to a variable leads to an error
var somevar = obj.0;