1var obj = {
2 first: "John",
3 last: "Doe"
4};
5
6//
7// Visit non-inherited enumerable keys
8//
9Object.keys(obj).forEach(function(key) {
10
11 console.log(key, obj[key]);
12
13});
1var loop = [];
2
3for(var x = 0; x < 10; x++){
4 loop.push({value1: "value_a_" + x , value2: "value_b_" + x});
5}
6
7JSON.stringify({array: loop});
8