I have JSON: {"status":"ok","squares":{"3x13":"0","3x12":0,"4x12":0,"2x13":0,"4x13":0,"4x14":2}}
How can i translate this to key-value array in javascript?
for (var s in s.squares) {
console.log(s);
}
gives only keys, like 3x13, 3x12. How get the values?
P.S. Sorry for bad Engish.