title: GetJSON check for Empty data
body: <p>i am using MVC c# i have a object with</p>
  
  <pre><code>public class Person
  {
          public int TypeId { get; set; }
          public string Code { get; set; }
  
  }
  </code></pre>
  
  <p>i have a code that retruns JSON object for this object like this</p>
  
  <pre><code>return Json(personCodeStore.GetPersonCodes(id).Select(x=&gt;new {text =x.Code, value =x.TypeId}), JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>how do i add a Indicator to my JSON return data, so that i can check for empty data</p>
  
  <pre><code>$.getJSON('../PersonList?id=1', function (data) {
  if (data==????)
  {
  alert("has data");
  }
  else
  {
  alert("is Empty");
  }
  }
  </code></pre>