import requests


def get_json_from_url(url, payload=None):
    """Download json record from url."""
    response = requests.get(url, params=payload)
    response.raise_for_status()
    return response.json()