automaticly generate the json file