public HttpResponseMessage GetOperators() { Comparisons comparisons = new Comparisons(); var parsed = JsonConvert.SerializeObject(comparisons.GetComparisonOperators()); var response = Request.CreateResponse(HttpStatusCode.OK); response.Content = new StringContent(parsed.ToString(), Encoding.UTF8, "application/json"); return(response); }