title: asp.net mvc 3 return json array
body: <p>Trying to generate an array on the client side for js:</p>
  
  <pre><code>var ds = [{ text: "john", value: "1" }, { text: "paul", value: "2" }];
  </code></pre>
  
  <p>In my asp.net mvc 3 controller I have created a entityframework model and trying to return a list :</p>
  
  <pre><code>NORTHWNDEntities db = new NORTHWNDEntities();
  public ActionResult GetCustomers()
  { 
      return Json( db.Customers,JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>at the moment I cant figure out just to return the customername+customerid property as a list of customers (NWind database)?</p>