title: How to convert LINQ result to JSON and pass it to View in MVC3
body: <p>In my controller i have the following code</p>
  
  <pre><code>public ActionResult 
  {
      var roomdetails = db.RoomDetails.Include(r =&gt; r.RoomType).Include(r =&gt; r.FloorNames);
  
      roomdetails = roomdetails.OrderByDescending(s =&gt; s.FloorNames.FloorName);
  
      return View(roomdetails.ToList());
  }
  </code></pre>
  
  <p>But i want to send the roomdetails as json object so that i can use jquery to catch the request and do further dynamic processing in my View.So how to convert roomdetails to json object.Please help me...</p>