from typing import Optional
from typing import Dict
import requests


def make_request_and_get_json(url: str) -> Optional[Dict[str, str]]:
    """
    Makes HTTP GET request to specified url and returns response body.

    Args:
        url: the url to make a request

    Returns:
        Body of the response in json format.
    """
    response = requests.get(url)
    if response.ok:
        return response.json()
    else:
        return None