title: asp.net mvc3, how to get the value returned by JsonResult
body: <p>here's my action.</p>
  
  <pre><code>    public virtual JsonResult AddSearch()
      {
          var data = new { Id = food.Id, Image = food.Image, Name = food.Name};
  
          return Json(data, JsonRequestBehavior.AllowGet);
      }
  </code></pre>
  
  <p>here's my aJax form</p>
  
  <pre><code>    @using (Ajax.BeginForm("AddSearch", "Home", new AjaxOptions { OnSuccess = "AddSearch" }))
  </code></pre>
  
  <p>my javascript file.</p>
  
  <pre><code>    function AddSearch() {
          alert("sdfsdfsdf");
      }
  </code></pre>
  
  <p>it works, I see the alert box. my question is how I can get the "Id", "Name" and "Image" returned by JsonResult.  I tried</p>
  
  <pre><code>        alert("sdfsdfsdf");
  </code></pre>
  
  <p>it's not working.</p>