i = 0 output = [] while (i < 1000) do output = append(output, i) i = i + 1 file.write('output.json').json(output)