var j = {a:"aaaaa", b:"bbbbbb", c:"ccccccc"} var x = []; for(key in j) { x.push(key); } console.log(x);