Added the json file creation stuff and the json file