import requests
import json


def get_jsonparsed_data(url):
    """
    Receive the content of `url`, parse it as JSON and return the object.
    
    Parameters
    ----------
    url : str given by API-syntax
    
    Returns
    -------
    dict or list of dicts
    """
    r = requests.get(url)
    if r.ok:
        data = json.loads(r.text, encoding='utf-8')
        return data
    else:
        print('Connection Failed')