new script to generate json file