var dst = ""; var aAry = { key1:"user1",key2:"user2",key3:"user3"}; for (key in aAry){ dst += key + "\\n"; } alert(dst);
key1 key2 key3