title: Cant Deserialize json string with JavaScriptSerializer
body: <p>From javascript I sent to a webmethod the following :</p>
  
  <pre><code>            var firstname = $("#txtfirstname").val();
              var lastname = $("#txtlastname").val();
  
              var dataFilter = { "filterType": "fn_ln", "data": { "firstName": firstname, "lastName": lastname } }
              var data = JSON.stringify(dataFilter)
              data = data.replace(/\"/g, '\'');
              datatoSend = '{ filters:"' + data + '" }';
  </code></pre>
  
  <p>I use <code>data.replace(/\"/g, '\'');</code> so the webmethod can accepts the data(without that I get an error 500 from webmethod)</p>
  
  <p>Once in the web method I receive </p>
  
  <pre><code>"{'filterType':'fn_ln','data':{'firstName':' aa','lastName':' bb'}}"
  </code></pre>
  
  <p>as the parameter. Then with c#, when I try.</p>
  
  <pre><code>JavaScriptSerializer sr = new JavaScriptSerializer();
  srFilterData filterin = sr.Deserialize&lt;srFilterData&gt;(filters);
  </code></pre>
  
  <p>I get an error saying that <code>No parameterless constructor defined for type of 'System.String[]</code></p>
  
  <p>This is my class:</p>
  
  <pre><code> [Serializable]
      public class srFilterData
      {
          public String filterType { get; set; }
          public String data { get; set; }
      }
  </code></pre>
  
  <p>Whats the problem?</p>