def make_string_json_valid(string) -> str:
    """
    converts the string into a valid JSON string — a string that
    can be parsed as JSON.
    :param string : str
    :return str
    """
    # make sure we have no new single quotes because JSON
    # requires double quotes
    return string.replace("'", '"')