What would be the best way to go about separating the key and values into two different arrays so that this -
var data = {\"A Key\": 34, \"Another Key\": 16
data1=[]; data2=[] for (x in data) { data1.push(x); data2.push(data[x]); }