Why should you not use the Produces attribute in a Web API controller?

You should not use the Produces attribute in a Bold Reports® Web API controller because ReportHelper already provides the processing data as a JSON string. The Produces attribute forces all actions within the controller to return JSON-formatted responses. Do not change the actions that convert the JSON to other types.

   public object PostReportAction(Dictionary<string, object> jsonResult)
    {
        return ReportHelper.ProcessReport(jsonResult, this);
    }

See also