title: while using JsonRequestBehavior in web api giving error saying cannot convert to json.serializer
body: <p>I am getting the following compilation error: </p>
  
  <pre><code>cannot convert from 'System.Web.Mvc.JsonRequestBehavior' to 'Newtonsoft.Json.JsonSerializerSettings'
  </code></pre>
  
  <p>code</p>
  
  <pre><code>public class PondController : ApiController
  {
      public JsonResult Get()
      {
          try
          {
              using (smartpondEntities DB = new smartpondEntities())
              {
                  var pond = DB.Temperatures.OrderByDescending(x =&gt; x.WaterTemperature).FirstOrDefault();
                  return Json(new { success = true, sensorsdata = new { id = pond.WaterTemperature, CurrentTime = pond.CreatedDate } }, JsonRequestBehavior.AllowGet);
              }
          }
          catch (Exception Ex)
          {
          }
          return Json(new { success = false }, JsonRequestBehavior.AllowGet);
      }
  }
  </code></pre>