def post_request_json(url, data, headers=None):
    """Send json data via POST request and return response

    Args:
        url(str): url to send request to
        data(dict): data to be sent
        headers(dict): request headers

    Returns:
        json_response(dict)
    """
    resp = None
    json_response = {}
    try:
        LOG.debug(f"Sending POST request with json data to {url}")
        if headers:
            resp = requests.post(url, headers=headers, json=data)
        else:
            resp = requests.post(url, json=data)
        json_response["content"] = resp.json()

    except Exception as ex:
        return {"message": f"An error occurred while sending a POST request to url {url} -> {ex}"}

    json_response["status_code"] = resp.status_code
    return json_response