def csv_to_json(csv_filename):
    """
    converts string referencing csv file to a json file

    :param csv_filename: (string) name of data, as a csv file
    :return: string of json filename matching csv file
    """
    csv_trimmed = csv_filename[:-3]
    json_added = csv_trimmed + 'json'
    return json_added