added function for running experiments in json files