added a line that logs the json file to disk