fetch the data from a json file