1var fs = require('fs');
2
3var data = {}
4data.table = []
5for (i=0; i <26 ; i++){
6 var obj = {
7 id: i,
8 square: i * i
9 }
10 data.table.push(obj)
11}
12fs.writeFile ("input.json", JSON.stringify(data), function(err) {
13 if (err) throw err;
14 console.log('complete');
15 }
16);