import json


def value_of_key_in_json_file(key, path_to_json):
    """
    Gets the value of the specified key in the specified json file.
    """

    with open(path_to_json, "r") as json_file:
        contents = json.load(json_file)
        return contents[key]