title: How to get array of int as json result in mvc 4?
body: <p>This is my json code.</p>
  
  <pre><code>public JsonResult GetCheckedPerm(int usr_groupId)
  {   
      List&lt;int&gt; selectedradio = GrpPermBAL.GetData(usr_groupId);        
      return(selectedradio,JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>This is my code to get data</p>
  
  <pre><code>public List&lt;int&gt; GetData(int groupId)
  {
      return db.ts_grp_perm_mapping
               .Where(c =&gt; c.grp_id == groupId)
               .Select(c =&gt; c.perm_id)
               .ToList();
  }
  </code></pre>
  
  <p>Here using above code I am returning array of int. But I am not able to result aray of int in json. I am getting below error cannot convert lambda expression type System.Web.Mvc.JsonResult because it is not a delegate type.</p>