import requests


def getJson(url):
    """
    HTTP GET request
    :param url: - api url
    :return: - json object, if response status is OK
    """
    response = requests.get(url)
    if response.status_code == 200:
        return response.text

    raise Exception(response.text)