title: How to pass JSON object to controller method in ASP.NET MVC 4
body: <p>I have an HTML table and would like to pass the content of the table into a controller method. I use JQuery to create an array then turn them into a JSON object.</p>
  
  <pre><code>                           var array_MACAddress = [];
                             var $MacAddress = $(".macaddress");
  
                             for (var i = 0, len = $MacAddress.length; i &lt; len; i++) {
                                 var $MAC = $($MacAddress[i]);
                                 console.log($MAC.text()); ////for testing only!!!
                                 array_MACAddress.push({
                                     key: $MAC.data("key"),
                                     value: $MAC.text()
                                 });
                             }; 
  </code></pre>
  
  <p>(the code above it to create an array of a column called "<code>MACAddress</code>"), then I use the code below to turn them into JSON object</p>
  
  <pre><code>var json_MACAddress = json.stringify(array_MACAddress);
  </code></pre>
  
  <p>How do I pass the JSON object into the controller method?</p>
  
  <pre><code>public ActionResult ActivationManagement(String jsonData)
  </code></pre>