title: How to post a java-script object to server
body: <p><strong>Here are my Classes (Simplified)</strong></p>
  
  <pre><code>public class DailyMenu
  {
    public string MenuNoteText { get; set; }
  }
  
  public class MenuMonth
  {
    public DailyMenu[] DailyMenus { get; set; }
  }
  </code></pre>
  
  <p><strong>And My webApi Action is</strong></p>
  
  <pre><code>[HttpPost]
  public void AddMenuItem_New(MenuMonth menuMonth)
  {
  
  }
  </code></pre>
  
  <p><strong>Clientside code for posting data is :</strong></p>
  
  <p><img src="https://i.stack.imgur.com/lPs43.png" alt="enter image description here"></p>
  
  <p>If I check Request.Form[0], I see "sampletext".</p>
  
  <p>in menuMonth, DailyMenus[0] has 1 DailyMenu item... which seems correct.</p>
  
  <p><strong>but this item's MenuNoteText property is null :(</strong>
  I spent more than half day trying to figure this out.. still no results ..
  I am sure many must have posted a simple javascript object to server.. Can someone tell me what m I missing here ?</p>