title: How to Convert JSON object to Custom C# object?
body: <p>Is there an easy way to populate my C# Object with the JSON object passed via AJAX?</p>
  <p>This is the JSON Object passed to C# WEBMETHOD from the page using JSON.stringify</p>
  <pre class="lang-json prettyprint-override"><code>{
      &quot;user&quot;: {
          &quot;name&quot;: &quot;asdf&quot;,
          &quot;teamname&quot;: &quot;b&quot;,
          &quot;email&quot;: &quot;c&quot;,
          &quot;players&quot;: [&quot;1&quot;, &quot;2&quot;]
      }
  }
  </code></pre>
  <p>C# WebMetod That receives the JSON Object</p>
  <pre class="lang-cs prettyprint-override"><code>[WebMethod]
  public static void SaveTeam(Object user)
  {
  
  }
  </code></pre>
  <p>C# Class that represents the object structure of JSON Object passed in to the WebMethod</p>
  <pre class="lang-cs prettyprint-override"><code>public class User
  {
      public string name { get; set; }
      public string teamname { get; set; }
      public string email { get; set; }
      public Array players { get; set; }
  }
  </code></pre>