title: return json result along with redirect
body: <p>I am having a login method. Within this method i am checking for any invalid data being picked from repository(i.e. i am calling a more function to check invalid data). Before adding the invalid check method the login method was returning <code>return RedirectToAction("HomePage", "Home");</code> but now i am unable to figure out that how to redirect the user to another view within this login method. Below is the code that i have written - </p>
  
  <pre><code>    List&lt;InvalidModel&gt; invalidModel = new List&lt;InvalidModel&gt;();    
      List&lt;object&gt; invalidModelList = new List&lt;object&gt;();     
      var jsonData = new { rows = new List&lt;object&gt;() };   
      invalidModel = GetInvalidItems();    
      if (invalidModel.Count &gt; 0)    
      {    
       foreach(var invld in invalidModel)
       {
           invalidModelList.Add(new
           {
             cell = new string[]
             {
               invld.InvalidItemID,
               invld.InvalidItemName,
             }
           });
       }
      }
      jsonData = new { rows = invalidModelList};
      return Json(jsonData, JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>Now i am confused that how to send this json data to a view that will show all invalid items in grid?
  Please help.</p>