update the dependencies in json file