added json option for generator scripts