def cleanup_report(report):
    """Given a dictionary of a report, return a new dictionary for output as
    JSON."""
    
    report_data = report
    report_data["id"] = str(report["_id"])
    report_data["user"] = str(report["user"])
    report_data["post"] = str(report["post"])
    del report_data["_id"]
    
    return report_data