I'm interperting a json string into a variable using jquery's parseJSON() function. The problem is, it's turning my data into an object instead of a 2d array. Eg,
myData = $.parse(JSON(data));
myData.name// = "Bob"
The problem is, "name" is not supposed to be a key (assuming that is the correct term). Instead, it should be:
myData[0] // = "name"
myData[1] // = "Bob"
How would I convert this? Or is there a different method than using a for loop to walk through the index of an array (but still be able to access both key and value as a string, as you would in a 2d array).
EDIT: This is some json that is in use (Note it's MUCH longer). This is what is given for "data"
{"feat_3":"4356","feat_4":"45","feat_5":"564","feat_6":"7566"}