title: How to pass an object to controller using ajax call
body: <p>I want to pass an object to controller and retrieve the values in the controller.
  I have defined like:</p>
  
  <p>Html code:</p>
  
  <pre><code> var positionarray = [];
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code> $("#button").live('click',function(){
       positionarray.push({
           id: sessionStorage.getItem('id'),
           value: $("#input").val() 
       });
   });
  
   // on save button click
   $.ajax({
         type: "GET",                                                 
         url:"/Bugs/Position",                                                 
         data: {
             array:positionarray      
         },
         cache: false,
         dataType: "json",
         contentType: "application/json; charset=utf-8",
         success: function (json) {
  
         }
   });
  </code></pre>
  
  <p>But i am not able to retrieve the values in the controller. It is getting null.</p>