JSONedit: array generator (Lua scripting)

JSONedit 0.8 introduced array elements cloning allowing quickly extending array sizes. This was useful when having identical array elements was not a problem. Generated nodes could be manually edited later, but with large arrays it was tiring and error prone job (consider complex nested object that needs i.e. only one parameter unique but it takes half of the screen when its structure is expanded).

Second way of helping with array creation was CSV import function. It allowed using well-known and powerfull tools such as spreadsheet for data generation, but it was limited to only few conversion schemes from 2D CSV to nested (potentially lot more complicated) JSON structure.

JSONedit 0.9.5 makes use of integrated Lua interpreter to help with algorithmic array generation in few steps:

While example above is very simple (identical effect could be achieved with CSV import function in fact) this method of array generation offers great flexibility. For simple tasks like this one I believe that no previous Lua knowledge is needed (if you are familiar with printf formatting), more complicated tasks may require some Lua documentation browsing. You may also use same concept with your own favorite programming language.

 "Cookie monsters": 4426845    Parse time: 0.001 s