title: ServiceStack.Text JSON parsing on .Net 4.0
body: <p>H chaps,
  I am trying to use ServiceStack.Text for JSON parsing (it seems to be performing better than JSON.Net in various benchmarks I have seen). But I am not getting the results I am expecting. The class I am attempting to deserialize looks like this:</p>
  
  <pre><code>[DataContract]
  public class RpcRequest&lt;T&gt;
  {
      [JsonProperty("id")]
      [DataMember(Name="id")]
      public String Id;
  
      [JsonProperty("method")]
      [DataMember(Name="method")]
      public String Method;
  
      [JsonProperty("params")]
      [DataMember(Name="params")]
      public T Params;
  
      [JsonIgnore]
      [IgnoreDataMember]
      public Policy Policy;
  }
  </code></pre>
  
  <p>And I am invoking the parser like this</p>
  
  <pre><code>public static class Json
  {
      public static T Deserialize&lt;T&gt;(string serialized)
      {
          return TypeSerializer.DeserializeFromString&lt;T&gt;(serialized);
      }
  }
  ...
  RpcRequest&lt;Params&gt; myRequeset = Json.Deserialize(packet);
  </code></pre>
  
  <p>However I am getting an instance back from that call which has none of the values set. ie <code>Id</code>, <code>Method</code> and <code>Params</code> are all null. Am I using this API correctly?</p>