Auto generating json file