import json


def get_credentials(credentials_json):
    """Retrieve gmail login and password from external json file."""
    with open(credentials_json) as credentials_file:
        credentials = json.loads(credentials_file.read())
    return credentials