Retrieves the value of the given key from the json file and converts it to an int.
the value of the given key from the json file converted to an int.
the key of the value.