import requests
import json


def get_jsonparsed_data(url):
    """
    Sends a GET request to API and returns the resulting data in a dictionary
    """
    # sending get request and saving the response as response object
    response = requests.get(url=url)
    data = json.loads(response.text)
    return data