title: Facing issue in passing a list or array of values through json
body: <p><strong>Scenario</strong></p>
  
  <p>I am passing a array list through json to a api method. The call is successful and when we see the list it shows the count of the number of objects passed but the values within the objects are not set please help.</p>
  
  <p>My object:</p>
  
  <pre><code>var datavalue = [{
          BeerId: 1,
          BeerName: "KingFisher",
          XCoordinates: 45,
          YCoordinates: 56
      },
      {
          BeerId: 2,
          BeerName: "KingFisher(Strong)",
          XCoordinates: 47,
          YCoordinates: 58
      }];
  </code></pre>
  
  <p>My json call:</p>
  
  <pre><code> $.ajax({ //actually approve or reject the promotion
          url: 'api/BeerAppGroup/GetRegistered',
          type: "POST",
          data: JSON.stringify(datavalue),
          contentType: "application/json; charset=utf-8",
          success: function (data) {
  }});
  </code></pre>
  
  <p>My api method:</p>
  
  <pre><code>[EnableCors("*", "*", "GET, POST")]
          [HttpPost]
          public IHttpActionResult GetRegistered(List&lt;UserBeerDetailContact&gt; datavalue)
          {
              BeerAppUserClass beerAppDal = new BeerAppUserClass();
              return Json(new KeyValuePair&lt;String, String&gt;("IsRegistered", ""));
  
          }
  </code></pre>
  
  <p>Definition of class:</p>
  
  <pre><code>[Serializable]
      public class UserBeerDetailContact
      {
          public Int32 BeerId { get; set; }
          public String BeerName { get; set; }
          public Int32 XCoordinates { get; set; }
          public Int32 YCoordinates { get; set; }
  
      }
  </code></pre>
  
  <p>We are getting count 2 in the list. But the values in each object is null.</p>
  
  <p>Please help how to get the values also within it.</p>