import requests


def GetStockPriceJson(symbol, size, stock_key):
    """
    Summary: Gets JSON response with stock data from AlphaVantage API

    Inputs: symbol - string representing stock's ticker symbol
            size - string denoting size of response, "compact" means 100 days' data will be returned, "full" means the full range
            stock_key - string representing AlphaVantage API Key

    Return Value: JSON object storing AlphaVantage API response
    """
    url = 'https://www.alphavantage.co/query?function=TIME_SERIES_DAILY_ADJUSTED&symbol={}&outputsize={}&apikey={}'.format(symbol, size, stock_key)
    response = requests.get(url)
    response_json = response.json()
    return response_json