JavaScriptSerializer issues
<p>SO I am getting a response from the google translate API's like this:</p>

<pre><code>"{\"responseData\": {\"translatedText\":\"Hola Mi nombre es\"}, \"responseDetails\": null, \"responseStatus\": 200}"
</code></pre>

<p>My code looks like:</p>

<pre><code> private string getText(string response)
    {
        var serializer = new JavaScriptSerializer(new SimpleTypeResolver());
        translationReturnObject obj = serializer.Deserialize&lt;translationReturnObject&gt;(response);

        return obj.translatedText;
    }
</code></pre>

<p>with translationReturnObject defined like this:</p>

<pre><code>[DataContract]
class translationReturnObject
{
    [DataMember(Name = "responseData")]
    public string repsonseData { get; set;}

    [DataMember(Name = "translatedText")]
    public string translatedText { get; set; }

    [DataMember(Name = "responseDetails")]
    public string responseDetails { get; set; }

    [DataMember(Name = "responseStatus")]
    public string responseStatus { get; set; }  

}
</code></pre>

<p>My problem is that translatedText is not getting deserialized correctly. No matter what the language being returned is (so I don't think it is an Encoding issue) the value is null.</p>

<p>Any ideas on what I am doing wrong?</p>
