connect to json file