Record requests to a json file