how to convert a string received from jquery to c# dynamic object?
<p>how can i convert a string which is a json object to dynamic in my c# WEBMETHOD..so that i can use it retrieve data.</p>

<p>example 
    my ajax call</p>

<pre><code> function do_save_data()
    {
      $.ajax({
         type:"POST",
         url:"../mymethods/test.aspx/SaveUser",
         data:"{'profile':'"+objrecieved+"'}",
         contentType:"application/json; charset=utf-8",
         success:function(msg){}
      });

} 



[WebMethod]
public void save data(object profile)
{
    JavaScriptSerializer _myserliaser=new JavaScriptSerializer();
    dynamic data=(dynamic)_myserliaser.DeseralizeObject(profile);

    //problem here is it is taking it as a string.hence when it try
    string name=data.name.ToString();
    //error 'string' does not contain a definition for 'name'



}
</code></pre>

<p>can anyone please tell me how to handle object that comes from ajax call as string and put it into dynamic and get its details
Thanks in advance</p>
