var loop = []; for(var x = 0; x < 10; x++){ loop.push({value1: "value_a_" + x , value2: "value_b_" + x}); } JSON.stringify({array: loop});