title: Passing JSON objects from javascript to ASP.NET MVC
body: <p>Hi i have some complex types in javascript and want to pass them to my ASP.NET MVC app, the problem is how? I already added a custom ModelBinder (but i dont see why do i need to do that, unless i need to set some erros). The problem is i have;</p>
  
  <pre><code>var obj = 
  
      {
        "intvar":"222",
        "stringvar" :"31asd",
        "datevar":new Date(123),
        ....
      }
  </code></pre>
  
  <p>How do i pass this object to ASP.NET? via query string and via Post method.
  EDIT: Soz for the bad explanation what i want is:</p>
  
  <pre><code>public class SomeObj
  {
    public int intvar;
    public string stringvar;
    public DateTime datevar;
  }
  
  public class HomeController : Controller
  {
   public someActionMethod(SomeObj o)
  {
  }
  </code></pre>
  
  <p>}
  Thkz in advance.</p>